using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using C1.Win.C1Input;
using C1.Win.C1TrueDBGrid;
using PCSComProcurement.Purchase.BO;
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.PCSExc;
using PCSUtils.Log;
using PCSUtils.Utils;
using CancelEventArgs = System.ComponentModel.CancelEventArgs;

namespace PCSProcurement.Purchase
{
	/// <summary>
	/// Summary description for PODeliverySchedule.
	/// </summary>
	/// 

	public class PODeliverySchedule : Form
	{
		private Button btnDelete;
		private Button btnSave;
		private Button btnClose;
		private Button btnHelp;
		private Button btnPrint;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private Container components = null;

		private const string THIS = "PCSProcurement.Purchase.PODeliverySchedule";
		EnumAction enumAction;
		private const string WARNING = "Warning";

		private PurchaseOrderInformationVO objPurchaseOrderInformationVO; //store the purchase order information
		private DataSet dstDeliverySchedule;
		decimal decAdjustment = 0;
		DateTime dtmServerDate = new DateTime();
		private DataTable dtGridDesign; //store the design of the grid
		private Label lblUM;
		private Label lblLine;
		private Label lblItem;
		private Label lblDescription;
		private Label lblRevision;
		private Label lblCCN;
		private Label lblOrderQty;
		private Label lblTotalQty;
		private C1NumericEdit lblTotalDelivery;
		private C1NumericEdit lblOrderQuantity;
		private C1DateEdit dtmDate;
		private C1TrueDBGrid dgrdData;
		private TextBox txtUnitCode;
		private TextBox txtDescription;
		private TextBox txtRevision;
		private TextBox txtPartNumber;
		private TextBox txtLine;
		private TextBox txtCCN;
		private TextBox txtCategory;
		private Label lblCategory;
		private Label lblWarning;
		bool blnAddNewByF12 = true;

		public PODeliverySchedule()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		public PODeliverySchedule(PurchaseOrderInformationVO pobjPurchaseOrderInformationVO)
		{
			objPurchaseOrderInformationVO = pobjPurchaseOrderInformationVO;
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		private int GetRowsCount()
		{
			if (!blnAddNewByF12)
			{
				blnAddNewByF12 = true;
				return dstDeliverySchedule.Tables[0].Select("").Length - 1;

			}
			else
			{
				blnAddNewByF12 = true;
				return dstDeliverySchedule.Tables[0].Select("").Length;
			}
		}
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PODeliverySchedule));
			this.btnPrint = new System.Windows.Forms.Button();
			this.btnDelete = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.lblUM = new System.Windows.Forms.Label();
			this.lblLine = new System.Windows.Forms.Label();
			this.lblItem = new System.Windows.Forms.Label();
			this.lblDescription = new System.Windows.Forms.Label();
			this.lblRevision = new System.Windows.Forms.Label();
			this.lblCCN = new System.Windows.Forms.Label();
			this.lblOrderQty = new System.Windows.Forms.Label();
			this.lblTotalQty = new System.Windows.Forms.Label();
			this.lblTotalDelivery = new C1.Win.C1Input.C1NumericEdit();
			this.lblOrderQuantity = new C1.Win.C1Input.C1NumericEdit();
			this.dtmDate = new C1.Win.C1Input.C1DateEdit();
			this.txtUnitCode = new System.Windows.Forms.TextBox();
			this.txtDescription = new System.Windows.Forms.TextBox();
			this.txtRevision = new System.Windows.Forms.TextBox();
			this.txtPartNumber = new System.Windows.Forms.TextBox();
			this.txtLine = new System.Windows.Forms.TextBox();
			this.txtCCN = new System.Windows.Forms.TextBox();
			this.txtCategory = new System.Windows.Forms.TextBox();
			this.lblCategory = new System.Windows.Forms.Label();
			this.lblWarning = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.lblTotalDelivery)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.lblOrderQuantity)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmDate)).BeginInit();
			this.SuspendLayout();
			// 
			// btnPrint
			// 
			this.btnPrint.AccessibleDescription = resources.GetString("btnPrint.AccessibleDescription");
			this.btnPrint.AccessibleName = resources.GetString("btnPrint.AccessibleName");
			this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPrint.Anchor")));
			this.btnPrint.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPrint.BackgroundImage")));
			this.btnPrint.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPrint.Dock")));
			this.btnPrint.Enabled = ((bool)(resources.GetObject("btnPrint.Enabled")));
			this.btnPrint.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPrint.FlatStyle")));
			this.btnPrint.Font = ((System.Drawing.Font)(resources.GetObject("btnPrint.Font")));
			this.btnPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.Image")));
			this.btnPrint.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.ImageAlign")));
			this.btnPrint.ImageIndex = ((int)(resources.GetObject("btnPrint.ImageIndex")));
			this.btnPrint.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPrint.ImeMode")));
			this.btnPrint.Location = ((System.Drawing.Point)(resources.GetObject("btnPrint.Location")));
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPrint.RightToLeft")));
			this.btnPrint.Size = ((System.Drawing.Size)(resources.GetObject("btnPrint.Size")));
			this.btnPrint.TabIndex = ((int)(resources.GetObject("btnPrint.TabIndex")));
			this.btnPrint.Text = resources.GetString("btnPrint.Text");
			this.btnPrint.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.TextAlign")));
			this.btnPrint.Visible = ((bool)(resources.GetObject("btnPrint.Visible")));
			// 
			// btnDelete
			// 
			this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
			this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
			this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
			this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
			this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
			this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
			this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
			this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
			this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
			this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
			this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
			this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
			this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
			this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
			this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
			this.btnDelete.Text = resources.GetString("btnDelete.Text");
			this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
			this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// btnSave
			// 
			this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
			this.btnSave.AccessibleName = resources.GetString("btnSave.AccessibleName");
			this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
			this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
			this.btnSave.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
			this.btnSave.Enabled = ((bool)(resources.GetObject("btnSave.Enabled")));
			this.btnSave.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
			this.btnSave.Font = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
			this.btnSave.ImageIndex = ((int)(resources.GetObject("btnSave.ImageIndex")));
			this.btnSave.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
			this.btnSave.Location = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
			this.btnSave.Name = "btnSave";
			this.btnSave.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
			this.btnSave.Size = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
			this.btnSave.TabIndex = ((int)(resources.GetObject("btnSave.TabIndex")));
			this.btnSave.Text = resources.GetString("btnSave.Text");
			this.btnSave.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
			this.btnSave.Visible = ((bool)(resources.GetObject("btnSave.Visible")));
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			// 
			// dgrdData
			// 
			this.dgrdData.AccessibleDescription = resources.GetString("dgrdData.AccessibleDescription");
			this.dgrdData.AccessibleName = resources.GetString("dgrdData.AccessibleName");
			this.dgrdData.AllowAddNew = ((bool)(resources.GetObject("dgrdData.AllowAddNew")));
			this.dgrdData.AllowArrows = ((bool)(resources.GetObject("dgrdData.AllowArrows")));
			this.dgrdData.AllowColMove = ((bool)(resources.GetObject("dgrdData.AllowColMove")));
			this.dgrdData.AllowColSelect = ((bool)(resources.GetObject("dgrdData.AllowColSelect")));
			this.dgrdData.AllowDelete = ((bool)(resources.GetObject("dgrdData.AllowDelete")));
			this.dgrdData.AllowDrag = ((bool)(resources.GetObject("dgrdData.AllowDrag")));
			this.dgrdData.AllowFilter = ((bool)(resources.GetObject("dgrdData.AllowFilter")));
			this.dgrdData.AllowHorizontalSplit = ((bool)(resources.GetObject("dgrdData.AllowHorizontalSplit")));
			this.dgrdData.AllowRowSelect = ((bool)(resources.GetObject("dgrdData.AllowRowSelect")));
			this.dgrdData.AllowSort = ((bool)(resources.GetObject("dgrdData.AllowSort")));
			this.dgrdData.AllowUpdate = ((bool)(resources.GetObject("dgrdData.AllowUpdate")));
			this.dgrdData.AllowUpdateOnBlur = ((bool)(resources.GetObject("dgrdData.AllowUpdateOnBlur")));
			this.dgrdData.AllowVerticalSplit = ((bool)(resources.GetObject("dgrdData.AllowVerticalSplit")));
			this.dgrdData.AlternatingRows = ((bool)(resources.GetObject("dgrdData.AlternatingRows")));
			this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dgrdData.Anchor")));
			this.dgrdData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dgrdData.BackgroundImage")));
			this.dgrdData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dgrdData.BorderStyle")));
			this.dgrdData.Caption = resources.GetString("dgrdData.Caption");
			this.dgrdData.CaptionHeight = ((int)(resources.GetObject("dgrdData.CaptionHeight")));
			this.dgrdData.CellTipsDelay = ((int)(resources.GetObject("dgrdData.CellTipsDelay")));
			this.dgrdData.CellTipsWidth = ((int)(resources.GetObject("dgrdData.CellTipsWidth")));
			this.dgrdData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("dgrdData.ChildGrid")));
			this.dgrdData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.CollapseColor")));
			this.dgrdData.ColumnFooters = ((bool)(resources.GetObject("dgrdData.ColumnFooters")));
			this.dgrdData.ColumnHeaders = ((bool)(resources.GetObject("dgrdData.ColumnHeaders")));
			this.dgrdData.DefColWidth = ((int)(resources.GetObject("dgrdData.DefColWidth")));
			this.dgrdData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dgrdData.Dock")));
			this.dgrdData.EditDropDown = ((bool)(resources.GetObject("dgrdData.EditDropDown")));
			this.dgrdData.EmptyRows = ((bool)(resources.GetObject("dgrdData.EmptyRows")));
			this.dgrdData.Enabled = ((bool)(resources.GetObject("dgrdData.Enabled")));
			this.dgrdData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.ExpandColor")));
			this.dgrdData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("dgrdData.ExposeCellMode")));
			this.dgrdData.ExtendRightColumn = ((bool)(resources.GetObject("dgrdData.ExtendRightColumn")));
			this.dgrdData.FetchRowStyles = ((bool)(resources.GetObject("dgrdData.FetchRowStyles")));
			this.dgrdData.FilterBar = ((bool)(resources.GetObject("dgrdData.FilterBar")));
			this.dgrdData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("dgrdData.FlatStyle")));
			this.dgrdData.Font = ((System.Drawing.Font)(resources.GetObject("dgrdData.Font")));
			this.dgrdData.GroupByAreaVisible = ((bool)(resources.GetObject("dgrdData.GroupByAreaVisible")));
			this.dgrdData.GroupByCaption = resources.GetString("dgrdData.GroupByCaption");
			this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.dgrdData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dgrdData.ImeMode")));
			this.dgrdData.LinesPerRow = ((int)(resources.GetObject("dgrdData.LinesPerRow")));
			this.dgrdData.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.Location")));
			this.dgrdData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.dgrdData.Name = "dgrdData";
			this.dgrdData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureAddnewRow")));
			this.dgrdData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureCurrentRow")));
			this.dgrdData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFilterBar")));
			this.dgrdData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFooterRow")));
			this.dgrdData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureHeaderRow")));
			this.dgrdData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureModifiedRow")));
			this.dgrdData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureStandardRow")));
			this.dgrdData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("dgrdData.PreviewInfo.AllowSizing")));
			this.dgrdData.PreviewInfo.Caption = resources.GetString("dgrdData.PreviewInfo.Caption");
			this.dgrdData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.PreviewInfo.Location")));
			this.dgrdData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.PreviewInfo.Size")));
			this.dgrdData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("dgrdData.PreviewInfo.ToolBars")));
			this.dgrdData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("dgrdData.PreviewInfo.UIStrings.Content")));
			this.dgrdData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("dgrdData.PreviewInfo.ZoomFactor")));
			this.dgrdData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.MaxRowHeight")));
			this.dgrdData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageFooter")));
			this.dgrdData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageHeader")));
			this.dgrdData.PrintInfo.PageFooter = resources.GetString("dgrdData.PrintInfo.PageFooter");
			this.dgrdData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageFooterHeight")));
			this.dgrdData.PrintInfo.PageHeader = resources.GetString("dgrdData.PrintInfo.PageHeader");
			this.dgrdData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageHeaderHeight")));
			this.dgrdData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("dgrdData.PrintInfo.PrintHorizontalSplits")));
			this.dgrdData.PrintInfo.ProgressCaption = resources.GetString("dgrdData.PrintInfo.ProgressCaption");
			this.dgrdData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnFooters")));
			this.dgrdData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnHeaders")));
			this.dgrdData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatGridHeader")));
			this.dgrdData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatSplitHeaders")));
			this.dgrdData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowOptionsDialog")));
			this.dgrdData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowProgressForm")));
			this.dgrdData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowSelection")));
			this.dgrdData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("dgrdData.PrintInfo.UseGridColors")));
			this.dgrdData.RecordSelectors = ((bool)(resources.GetObject("dgrdData.RecordSelectors")));
			this.dgrdData.RecordSelectorWidth = ((int)(resources.GetObject("dgrdData.RecordSelectorWidth")));
			this.dgrdData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dgrdData.RightToLeft")));
			this.dgrdData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.dgrdData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.dgrdData.RowHeight = ((int)(resources.GetObject("dgrdData.RowHeight")));
			this.dgrdData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.RowSubDividerColor")));
			this.dgrdData.ScrollTips = ((bool)(resources.GetObject("dgrdData.ScrollTips")));
			this.dgrdData.ScrollTrack = ((bool)(resources.GetObject("dgrdData.ScrollTrack")));
			this.dgrdData.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.Size")));
			this.dgrdData.SpringMode = ((bool)(resources.GetObject("dgrdData.SpringMode")));
			this.dgrdData.TabAcrossSplits = ((bool)(resources.GetObject("dgrdData.TabAcrossSplits")));
			this.dgrdData.TabIndex = ((int)(resources.GetObject("dgrdData.TabIndex")));
			this.dgrdData.Text = resources.GetString("dgrdData.Text");
			this.dgrdData.ViewCaptionWidth = ((int)(resources.GetObject("dgrdData.ViewCaptionWidth")));
			this.dgrdData.ViewColumnWidth = ((int)(resources.GetObject("dgrdData.ViewColumnWidth")));
			this.dgrdData.Visible = ((bool)(resources.GetObject("dgrdData.Visible")));
			this.dgrdData.WrapCellPointer = ((bool)(resources.GetObject("dgrdData.WrapCellPointer")));
			this.dgrdData.AfterDelete += new System.EventHandler(this.dgrdData_AfterDelete);
			this.dgrdData.AfterUpdate += new System.EventHandler(this.dgrdData_AfterUpdate);
			this.dgrdData.BeforeColEdit += new C1.Win.C1TrueDBGrid.BeforeColEditEventHandler(this.dgrdData_BeforeColEdit);
			this.dgrdData.FetchCellStyle += new C1.Win.C1TrueDBGrid.FetchCellStyleEventHandler(this.dgrdData_FetchCellStyle);
			this.dgrdData.AfterColUpdate += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColUpdate);
			this.dgrdData.BeforeInsert += new C1.Win.C1TrueDBGrid.CancelEventHandler(this.dgrdData_BeforeInsert);
			this.dgrdData.BeforeColUpdate += new C1.Win.C1TrueDBGrid.BeforeColUpdateEventHandler(this.dgrdData_BeforeColUpdate);
			this.dgrdData.AfterInsert += new System.EventHandler(this.dgrdData_AfterInsert);
			this.dgrdData.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgrdData_KeyDown);
			this.dgrdData.OnAddNew += new System.EventHandler(this.dgrdData_OnAddNew);
			this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag");
			// 
			// lblUM
			// 
			this.lblUM.AccessibleDescription = resources.GetString("lblUM.AccessibleDescription");
			this.lblUM.AccessibleName = resources.GetString("lblUM.AccessibleName");
			this.lblUM.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblUM.Anchor")));
			this.lblUM.AutoSize = ((bool)(resources.GetObject("lblUM.AutoSize")));
			this.lblUM.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblUM.Dock")));
			this.lblUM.Enabled = ((bool)(resources.GetObject("lblUM.Enabled")));
			this.lblUM.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblUM.Font = ((System.Drawing.Font)(resources.GetObject("lblUM.Font")));
			this.lblUM.ForeColor = System.Drawing.Color.Black;
			this.lblUM.Image = ((System.Drawing.Image)(resources.GetObject("lblUM.Image")));
			this.lblUM.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblUM.ImageAlign")));
			this.lblUM.ImageIndex = ((int)(resources.GetObject("lblUM.ImageIndex")));
			this.lblUM.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblUM.ImeMode")));
			this.lblUM.Location = ((System.Drawing.Point)(resources.GetObject("lblUM.Location")));
			this.lblUM.Name = "lblUM";
			this.lblUM.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblUM.RightToLeft")));
			this.lblUM.Size = ((System.Drawing.Size)(resources.GetObject("lblUM.Size")));
			this.lblUM.TabIndex = ((int)(resources.GetObject("lblUM.TabIndex")));
			this.lblUM.Text = resources.GetString("lblUM.Text");
			this.lblUM.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblUM.TextAlign")));
			this.lblUM.Visible = ((bool)(resources.GetObject("lblUM.Visible")));
			// 
			// lblLine
			// 
			this.lblLine.AccessibleDescription = resources.GetString("lblLine.AccessibleDescription");
			this.lblLine.AccessibleName = resources.GetString("lblLine.AccessibleName");
			this.lblLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblLine.Anchor")));
			this.lblLine.AutoSize = ((bool)(resources.GetObject("lblLine.AutoSize")));
			this.lblLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblLine.Dock")));
			this.lblLine.Enabled = ((bool)(resources.GetObject("lblLine.Enabled")));
			this.lblLine.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblLine.Font = ((System.Drawing.Font)(resources.GetObject("lblLine.Font")));
			this.lblLine.ForeColor = System.Drawing.Color.Black;
			this.lblLine.Image = ((System.Drawing.Image)(resources.GetObject("lblLine.Image")));
			this.lblLine.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblLine.ImageAlign")));
			this.lblLine.ImageIndex = ((int)(resources.GetObject("lblLine.ImageIndex")));
			this.lblLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblLine.ImeMode")));
			this.lblLine.Location = ((System.Drawing.Point)(resources.GetObject("lblLine.Location")));
			this.lblLine.Name = "lblLine";
			this.lblLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblLine.RightToLeft")));
			this.lblLine.Size = ((System.Drawing.Size)(resources.GetObject("lblLine.Size")));
			this.lblLine.TabIndex = ((int)(resources.GetObject("lblLine.TabIndex")));
			this.lblLine.Text = resources.GetString("lblLine.Text");
			this.lblLine.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblLine.TextAlign")));
			this.lblLine.Visible = ((bool)(resources.GetObject("lblLine.Visible")));
			// 
			// lblItem
			// 
			this.lblItem.AccessibleDescription = resources.GetString("lblItem.AccessibleDescription");
			this.lblItem.AccessibleName = resources.GetString("lblItem.AccessibleName");
			this.lblItem.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblItem.Anchor")));
			this.lblItem.AutoSize = ((bool)(resources.GetObject("lblItem.AutoSize")));
			this.lblItem.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblItem.Dock")));
			this.lblItem.Enabled = ((bool)(resources.GetObject("lblItem.Enabled")));
			this.lblItem.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblItem.Font = ((System.Drawing.Font)(resources.GetObject("lblItem.Font")));
			this.lblItem.ForeColor = System.Drawing.Color.Black;
			this.lblItem.Image = ((System.Drawing.Image)(resources.GetObject("lblItem.Image")));
			this.lblItem.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblItem.ImageAlign")));
			this.lblItem.ImageIndex = ((int)(resources.GetObject("lblItem.ImageIndex")));
			this.lblItem.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblItem.ImeMode")));
			this.lblItem.Location = ((System.Drawing.Point)(resources.GetObject("lblItem.Location")));
			this.lblItem.Name = "lblItem";
			this.lblItem.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblItem.RightToLeft")));
			this.lblItem.Size = ((System.Drawing.Size)(resources.GetObject("lblItem.Size")));
			this.lblItem.TabIndex = ((int)(resources.GetObject("lblItem.TabIndex")));
			this.lblItem.Text = resources.GetString("lblItem.Text");
			this.lblItem.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblItem.TextAlign")));
			this.lblItem.Visible = ((bool)(resources.GetObject("lblItem.Visible")));
			// 
			// lblDescription
			// 
			this.lblDescription.AccessibleDescription = resources.GetString("lblDescription.AccessibleDescription");
			this.lblDescription.AccessibleName = resources.GetString("lblDescription.AccessibleName");
			this.lblDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblDescription.Anchor")));
			this.lblDescription.AutoSize = ((bool)(resources.GetObject("lblDescription.AutoSize")));
			this.lblDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblDescription.Dock")));
			this.lblDescription.Enabled = ((bool)(resources.GetObject("lblDescription.Enabled")));
			this.lblDescription.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblDescription.Font = ((System.Drawing.Font)(resources.GetObject("lblDescription.Font")));
			this.lblDescription.ForeColor = System.Drawing.Color.Black;
			this.lblDescription.Image = ((System.Drawing.Image)(resources.GetObject("lblDescription.Image")));
			this.lblDescription.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblDescription.ImageAlign")));
			this.lblDescription.ImageIndex = ((int)(resources.GetObject("lblDescription.ImageIndex")));
			this.lblDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblDescription.ImeMode")));
			this.lblDescription.Location = ((System.Drawing.Point)(resources.GetObject("lblDescription.Location")));
			this.lblDescription.Name = "lblDescription";
			this.lblDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblDescription.RightToLeft")));
			this.lblDescription.Size = ((System.Drawing.Size)(resources.GetObject("lblDescription.Size")));
			this.lblDescription.TabIndex = ((int)(resources.GetObject("lblDescription.TabIndex")));
			this.lblDescription.Text = resources.GetString("lblDescription.Text");
			this.lblDescription.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblDescription.TextAlign")));
			this.lblDescription.Visible = ((bool)(resources.GetObject("lblDescription.Visible")));
			// 
			// lblRevision
			// 
			this.lblRevision.AccessibleDescription = resources.GetString("lblRevision.AccessibleDescription");
			this.lblRevision.AccessibleName = resources.GetString("lblRevision.AccessibleName");
			this.lblRevision.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblRevision.Anchor")));
			this.lblRevision.AutoSize = ((bool)(resources.GetObject("lblRevision.AutoSize")));
			this.lblRevision.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblRevision.Dock")));
			this.lblRevision.Enabled = ((bool)(resources.GetObject("lblRevision.Enabled")));
			this.lblRevision.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblRevision.Font = ((System.Drawing.Font)(resources.GetObject("lblRevision.Font")));
			this.lblRevision.ForeColor = System.Drawing.Color.Black;
			this.lblRevision.Image = ((System.Drawing.Image)(resources.GetObject("lblRevision.Image")));
			this.lblRevision.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblRevision.ImageAlign")));
			this.lblRevision.ImageIndex = ((int)(resources.GetObject("lblRevision.ImageIndex")));
			this.lblRevision.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblRevision.ImeMode")));
			this.lblRevision.Location = ((System.Drawing.Point)(resources.GetObject("lblRevision.Location")));
			this.lblRevision.Name = "lblRevision";
			this.lblRevision.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblRevision.RightToLeft")));
			this.lblRevision.Size = ((System.Drawing.Size)(resources.GetObject("lblRevision.Size")));
			this.lblRevision.TabIndex = ((int)(resources.GetObject("lblRevision.TabIndex")));
			this.lblRevision.Text = resources.GetString("lblRevision.Text");
			this.lblRevision.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblRevision.TextAlign")));
			this.lblRevision.Visible = ((bool)(resources.GetObject("lblRevision.Visible")));
			// 
			// lblCCN
			// 
			this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
			this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
			this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
			this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
			this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
			this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
			this.lblCCN.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
			this.lblCCN.ForeColor = System.Drawing.Color.Black;
			this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
			this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
			this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
			this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
			this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
			this.lblCCN.Name = "lblCCN";
			this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
			this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
			this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
			this.lblCCN.Text = resources.GetString("lblCCN.Text");
			this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
			this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
			// 
			// lblOrderQty
			// 
			this.lblOrderQty.AccessibleDescription = resources.GetString("lblOrderQty.AccessibleDescription");
			this.lblOrderQty.AccessibleName = resources.GetString("lblOrderQty.AccessibleName");
			this.lblOrderQty.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblOrderQty.Anchor")));
			this.lblOrderQty.AutoSize = ((bool)(resources.GetObject("lblOrderQty.AutoSize")));
			this.lblOrderQty.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblOrderQty.Dock")));
			this.lblOrderQty.Enabled = ((bool)(resources.GetObject("lblOrderQty.Enabled")));
			this.lblOrderQty.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblOrderQty.Font = ((System.Drawing.Font)(resources.GetObject("lblOrderQty.Font")));
			this.lblOrderQty.ForeColor = System.Drawing.Color.Black;
			this.lblOrderQty.Image = ((System.Drawing.Image)(resources.GetObject("lblOrderQty.Image")));
			this.lblOrderQty.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblOrderQty.ImageAlign")));
			this.lblOrderQty.ImageIndex = ((int)(resources.GetObject("lblOrderQty.ImageIndex")));
			this.lblOrderQty.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblOrderQty.ImeMode")));
			this.lblOrderQty.Location = ((System.Drawing.Point)(resources.GetObject("lblOrderQty.Location")));
			this.lblOrderQty.Name = "lblOrderQty";
			this.lblOrderQty.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblOrderQty.RightToLeft")));
			this.lblOrderQty.Size = ((System.Drawing.Size)(resources.GetObject("lblOrderQty.Size")));
			this.lblOrderQty.TabIndex = ((int)(resources.GetObject("lblOrderQty.TabIndex")));
			this.lblOrderQty.Text = resources.GetString("lblOrderQty.Text");
			this.lblOrderQty.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblOrderQty.TextAlign")));
			this.lblOrderQty.Visible = ((bool)(resources.GetObject("lblOrderQty.Visible")));
			// 
			// lblTotalQty
			// 
			this.lblTotalQty.AccessibleDescription = resources.GetString("lblTotalQty.AccessibleDescription");
			this.lblTotalQty.AccessibleName = resources.GetString("lblTotalQty.AccessibleName");
			this.lblTotalQty.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalQty.Anchor")));
			this.lblTotalQty.AutoSize = ((bool)(resources.GetObject("lblTotalQty.AutoSize")));
			this.lblTotalQty.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalQty.Dock")));
			this.lblTotalQty.Enabled = ((bool)(resources.GetObject("lblTotalQty.Enabled")));
			this.lblTotalQty.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblTotalQty.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalQty.Font")));
			this.lblTotalQty.ForeColor = System.Drawing.Color.Black;
			this.lblTotalQty.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalQty.Image")));
			this.lblTotalQty.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalQty.ImageAlign")));
			this.lblTotalQty.ImageIndex = ((int)(resources.GetObject("lblTotalQty.ImageIndex")));
			this.lblTotalQty.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalQty.ImeMode")));
			this.lblTotalQty.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalQty.Location")));
			this.lblTotalQty.Name = "lblTotalQty";
			this.lblTotalQty.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalQty.RightToLeft")));
			this.lblTotalQty.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalQty.Size")));
			this.lblTotalQty.TabIndex = ((int)(resources.GetObject("lblTotalQty.TabIndex")));
			this.lblTotalQty.Text = resources.GetString("lblTotalQty.Text");
			this.lblTotalQty.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalQty.TextAlign")));
			this.lblTotalQty.Visible = ((bool)(resources.GetObject("lblTotalQty.Visible")));
			// 
			// lblTotalDelivery
			// 
			this.lblTotalDelivery.AcceptsEscape = ((bool)(resources.GetObject("lblTotalDelivery.AcceptsEscape")));
			this.lblTotalDelivery.AccessibleDescription = resources.GetString("lblTotalDelivery.AccessibleDescription");
			this.lblTotalDelivery.AccessibleName = resources.GetString("lblTotalDelivery.AccessibleName");
			this.lblTotalDelivery.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalDelivery.Anchor")));
			this.lblTotalDelivery.AutoSize = ((bool)(resources.GetObject("lblTotalDelivery.AutoSize")));
			this.lblTotalDelivery.BackColor = System.Drawing.SystemColors.Control;
			this.lblTotalDelivery.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lblTotalDelivery.BackgroundImage")));
			this.lblTotalDelivery.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("lblTotalDelivery.BorderStyle")));
			// 
			// lblTotalDelivery.Calculator
			// 
			this.lblTotalDelivery.Calculator.AccessibleDescription = resources.GetString("lblTotalDelivery.Calculator.AccessibleDescription");
			this.lblTotalDelivery.Calculator.AccessibleName = resources.GetString("lblTotalDelivery.Calculator.AccessibleName");
			this.lblTotalDelivery.Calculator.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lblTotalDelivery.Calculator.BackgroundImage")));
			this.lblTotalDelivery.Calculator.ButtonFlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("lblTotalDelivery.Calculator.ButtonFlatStyle")));
			this.lblTotalDelivery.Calculator.DisplayFormat = resources.GetString("lblTotalDelivery.Calculator.DisplayFormat");
			this.lblTotalDelivery.Calculator.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalDelivery.Calculator.Font")));
			this.lblTotalDelivery.Calculator.FormatOnClose = ((bool)(resources.GetObject("lblTotalDelivery.Calculator.FormatOnClose")));
			this.lblTotalDelivery.Calculator.StoredFormat = resources.GetString("lblTotalDelivery.Calculator.StoredFormat");
			this.lblTotalDelivery.Calculator.UIStrings.Content = ((string[])(resources.GetObject("lblTotalDelivery.Calculator.UIStrings.Content")));
			this.lblTotalDelivery.CaseSensitive = ((bool)(resources.GetObject("lblTotalDelivery.CaseSensitive")));
			this.lblTotalDelivery.Culture = ((int)(resources.GetObject("lblTotalDelivery.Culture")));
			this.lblTotalDelivery.CustomFormat = resources.GetString("lblTotalDelivery.CustomFormat");
			this.lblTotalDelivery.DataType = ((System.Type)(resources.GetObject("lblTotalDelivery.DataType")));
			this.lblTotalDelivery.DisplayFormat.CustomFormat = resources.GetString("lblTotalDelivery.DisplayFormat.CustomFormat");
			this.lblTotalDelivery.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblTotalDelivery.DisplayFormat.FormatType")));
			this.lblTotalDelivery.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("lblTotalDelivery.DisplayFormat.Inherit")));
			this.lblTotalDelivery.DisplayFormat.NullText = resources.GetString("lblTotalDelivery.DisplayFormat.NullText");
			this.lblTotalDelivery.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("lblTotalDelivery.DisplayFormat.TrimEnd")));
			this.lblTotalDelivery.DisplayFormat.TrimStart = ((bool)(resources.GetObject("lblTotalDelivery.DisplayFormat.TrimStart")));
			this.lblTotalDelivery.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalDelivery.Dock")));
			this.lblTotalDelivery.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("lblTotalDelivery.DropDownFormAlign")));
			this.lblTotalDelivery.EditFormat.CustomFormat = resources.GetString("lblTotalDelivery.EditFormat.CustomFormat");
			this.lblTotalDelivery.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblTotalDelivery.EditFormat.FormatType")));
			this.lblTotalDelivery.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("lblTotalDelivery.EditFormat.Inherit")));
			this.lblTotalDelivery.EditFormat.NullText = resources.GetString("lblTotalDelivery.EditFormat.NullText");
			this.lblTotalDelivery.EditFormat.TrimEnd = ((bool)(resources.GetObject("lblTotalDelivery.EditFormat.TrimEnd")));
			this.lblTotalDelivery.EditFormat.TrimStart = ((bool)(resources.GetObject("lblTotalDelivery.EditFormat.TrimStart")));
			this.lblTotalDelivery.EditMask = resources.GetString("lblTotalDelivery.EditMask");
			this.lblTotalDelivery.EmptyAsNull = ((bool)(resources.GetObject("lblTotalDelivery.EmptyAsNull")));
			this.lblTotalDelivery.Enabled = ((bool)(resources.GetObject("lblTotalDelivery.Enabled")));
			this.lblTotalDelivery.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("lblTotalDelivery.ErrorInfo.BeepOnError")));
			this.lblTotalDelivery.ErrorInfo.ErrorMessage = resources.GetString("lblTotalDelivery.ErrorInfo.ErrorMessage");
			this.lblTotalDelivery.ErrorInfo.ErrorMessageCaption = resources.GetString("lblTotalDelivery.ErrorInfo.ErrorMessageCaption");
			this.lblTotalDelivery.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("lblTotalDelivery.ErrorInfo.ShowErrorMessage")));
			this.lblTotalDelivery.ErrorInfo.ValueOnError = ((object)(resources.GetObject("lblTotalDelivery.ErrorInfo.ValueOnError")));
			this.lblTotalDelivery.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalDelivery.Font")));
			this.lblTotalDelivery.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblTotalDelivery.FormatType")));
			this.lblTotalDelivery.GapHeight = ((int)(resources.GetObject("lblTotalDelivery.GapHeight")));
			this.lblTotalDelivery.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalDelivery.ImeMode")));
			this.lblTotalDelivery.Increment = ((object)(resources.GetObject("lblTotalDelivery.Increment")));
			this.lblTotalDelivery.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("lblTotalDelivery.InitialSelection")));
			this.lblTotalDelivery.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalDelivery.Location")));
			this.lblTotalDelivery.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("lblTotalDelivery.MaskInfo.AutoTabWhenFilled")));
			this.lblTotalDelivery.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("lblTotalDelivery.MaskInfo.CaseSensitive")));
			this.lblTotalDelivery.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("lblTotalDelivery.MaskInfo.CopyWithLiterals")));
			this.lblTotalDelivery.MaskInfo.EditMask = resources.GetString("lblTotalDelivery.MaskInfo.EditMask");
			this.lblTotalDelivery.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("lblTotalDelivery.MaskInfo.EmptyAsNull")));
			this.lblTotalDelivery.MaskInfo.ErrorMessage = resources.GetString("lblTotalDelivery.MaskInfo.ErrorMessage");
			this.lblTotalDelivery.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("lblTotalDelivery.MaskInfo.Inherit")));
			this.lblTotalDelivery.MaskInfo.PromptChar = ((char)(resources.GetObject("lblTotalDelivery.MaskInfo.PromptChar")));
			this.lblTotalDelivery.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("lblTotalDelivery.MaskInfo.ShowLiterals")));
			this.lblTotalDelivery.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("lblTotalDelivery.MaskInfo.StoredEmptyChar")));
			this.lblTotalDelivery.MaxLength = ((int)(resources.GetObject("lblTotalDelivery.MaxLength")));
			this.lblTotalDelivery.Name = "lblTotalDelivery";
			this.lblTotalDelivery.NullText = resources.GetString("lblTotalDelivery.NullText");
			this.lblTotalDelivery.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("lblTotalDelivery.ParseInfo.CaseSensitive")));
			this.lblTotalDelivery.ParseInfo.CustomFormat = resources.GetString("lblTotalDelivery.ParseInfo.CustomFormat");
			this.lblTotalDelivery.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("lblTotalDelivery.ParseInfo.EmptyAsNull")));
			this.lblTotalDelivery.ParseInfo.ErrorMessage = resources.GetString("lblTotalDelivery.ParseInfo.ErrorMessage");
			this.lblTotalDelivery.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblTotalDelivery.ParseInfo.FormatType")));
			this.lblTotalDelivery.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("lblTotalDelivery.ParseInfo.Inherit")));
			this.lblTotalDelivery.ParseInfo.NullText = resources.GetString("lblTotalDelivery.ParseInfo.NullText");
			this.lblTotalDelivery.ParseInfo.NumberStyle = ((C1.Win.C1Input.NumberStyleFlags)(resources.GetObject("lblTotalDelivery.ParseInfo.NumberStyle")));
			this.lblTotalDelivery.ParseInfo.TrimEnd = ((bool)(resources.GetObject("lblTotalDelivery.ParseInfo.TrimEnd")));
			this.lblTotalDelivery.ParseInfo.TrimStart = ((bool)(resources.GetObject("lblTotalDelivery.ParseInfo.TrimStart")));
			this.lblTotalDelivery.PasswordChar = ((char)(resources.GetObject("lblTotalDelivery.PasswordChar")));
			this.lblTotalDelivery.PostValidation.CaseSensitive = ((bool)(resources.GetObject("lblTotalDelivery.PostValidation.CaseSensitive")));
			this.lblTotalDelivery.PostValidation.ErrorMessage = resources.GetString("lblTotalDelivery.PostValidation.ErrorMessage");
			this.lblTotalDelivery.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("lblTotalDelivery.PostValidation.Inherit")));
			this.lblTotalDelivery.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("lblTotalDelivery.PostValidation.Validation")));
			this.lblTotalDelivery.PostValidation.Values = ((System.Array)(resources.GetObject("lblTotalDelivery.PostValidation.Values")));
			this.lblTotalDelivery.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("lblTotalDelivery.PostValidation.ValuesExcluded")));
			this.lblTotalDelivery.PreValidation.CaseSensitive = ((bool)(resources.GetObject("lblTotalDelivery.PreValidation.CaseSensitive")));
			this.lblTotalDelivery.PreValidation.ErrorMessage = resources.GetString("lblTotalDelivery.PreValidation.ErrorMessage");
			this.lblTotalDelivery.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("lblTotalDelivery.PreValidation.Inherit")));
			this.lblTotalDelivery.PreValidation.ItemSeparator = resources.GetString("lblTotalDelivery.PreValidation.ItemSeparator");
			this.lblTotalDelivery.PreValidation.PatternString = resources.GetString("lblTotalDelivery.PreValidation.PatternString");
			this.lblTotalDelivery.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("lblTotalDelivery.PreValidation.RegexOptions")));
			this.lblTotalDelivery.PreValidation.TrimEnd = ((bool)(resources.GetObject("lblTotalDelivery.PreValidation.TrimEnd")));
			this.lblTotalDelivery.PreValidation.TrimStart = ((bool)(resources.GetObject("lblTotalDelivery.PreValidation.TrimStart")));
			this.lblTotalDelivery.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("lblTotalDelivery.PreValidation.Validation")));
			this.lblTotalDelivery.ReadOnly = true;
			this.lblTotalDelivery.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalDelivery.RightToLeft")));
			this.lblTotalDelivery.ShowFocusRectangle = ((bool)(resources.GetObject("lblTotalDelivery.ShowFocusRectangle")));
			this.lblTotalDelivery.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalDelivery.Size")));
			this.lblTotalDelivery.TabIndex = ((int)(resources.GetObject("lblTotalDelivery.TabIndex")));
			this.lblTotalDelivery.TabStop = false;
			this.lblTotalDelivery.Tag = ((object)(resources.GetObject("lblTotalDelivery.Tag")));
			this.lblTotalDelivery.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("lblTotalDelivery.TextAlign")));
			this.lblTotalDelivery.TrimEnd = ((bool)(resources.GetObject("lblTotalDelivery.TrimEnd")));
			this.lblTotalDelivery.TrimStart = ((bool)(resources.GetObject("lblTotalDelivery.TrimStart")));
			this.lblTotalDelivery.UserCultureOverride = ((bool)(resources.GetObject("lblTotalDelivery.UserCultureOverride")));
			this.lblTotalDelivery.Value = ((object)(resources.GetObject("lblTotalDelivery.Value")));
			this.lblTotalDelivery.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("lblTotalDelivery.VerticalAlign")));
			this.lblTotalDelivery.Visible = ((bool)(resources.GetObject("lblTotalDelivery.Visible")));
			this.lblTotalDelivery.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("lblTotalDelivery.VisibleButtons")));
			// 
			// lblOrderQuantity
			// 
			this.lblOrderQuantity.AcceptsEscape = ((bool)(resources.GetObject("lblOrderQuantity.AcceptsEscape")));
			this.lblOrderQuantity.AccessibleDescription = resources.GetString("lblOrderQuantity.AccessibleDescription");
			this.lblOrderQuantity.AccessibleName = resources.GetString("lblOrderQuantity.AccessibleName");
			this.lblOrderQuantity.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblOrderQuantity.Anchor")));
			this.lblOrderQuantity.AutoSize = ((bool)(resources.GetObject("lblOrderQuantity.AutoSize")));
			this.lblOrderQuantity.BackColor = System.Drawing.SystemColors.Control;
			this.lblOrderQuantity.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lblOrderQuantity.BackgroundImage")));
			this.lblOrderQuantity.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("lblOrderQuantity.BorderStyle")));
			// 
			// lblOrderQuantity.Calculator
			// 
			this.lblOrderQuantity.Calculator.AccessibleDescription = resources.GetString("lblOrderQuantity.Calculator.AccessibleDescription");
			this.lblOrderQuantity.Calculator.AccessibleName = resources.GetString("lblOrderQuantity.Calculator.AccessibleName");
			this.lblOrderQuantity.Calculator.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("lblOrderQuantity.Calculator.BackgroundImage")));
			this.lblOrderQuantity.Calculator.ButtonFlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("lblOrderQuantity.Calculator.ButtonFlatStyle")));
			this.lblOrderQuantity.Calculator.DisplayFormat = resources.GetString("lblOrderQuantity.Calculator.DisplayFormat");
			this.lblOrderQuantity.Calculator.Font = ((System.Drawing.Font)(resources.GetObject("lblOrderQuantity.Calculator.Font")));
			this.lblOrderQuantity.Calculator.FormatOnClose = ((bool)(resources.GetObject("lblOrderQuantity.Calculator.FormatOnClose")));
			this.lblOrderQuantity.Calculator.StoredFormat = resources.GetString("lblOrderQuantity.Calculator.StoredFormat");
			this.lblOrderQuantity.Calculator.UIStrings.Content = ((string[])(resources.GetObject("lblOrderQuantity.Calculator.UIStrings.Content")));
			this.lblOrderQuantity.CaseSensitive = ((bool)(resources.GetObject("lblOrderQuantity.CaseSensitive")));
			this.lblOrderQuantity.Culture = ((int)(resources.GetObject("lblOrderQuantity.Culture")));
			this.lblOrderQuantity.CustomFormat = resources.GetString("lblOrderQuantity.CustomFormat");
			this.lblOrderQuantity.DataType = ((System.Type)(resources.GetObject("lblOrderQuantity.DataType")));
			this.lblOrderQuantity.DisplayFormat.CustomFormat = resources.GetString("lblOrderQuantity.DisplayFormat.CustomFormat");
			this.lblOrderQuantity.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblOrderQuantity.DisplayFormat.FormatType")));
			this.lblOrderQuantity.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("lblOrderQuantity.DisplayFormat.Inherit")));
			this.lblOrderQuantity.DisplayFormat.NullText = resources.GetString("lblOrderQuantity.DisplayFormat.NullText");
			this.lblOrderQuantity.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("lblOrderQuantity.DisplayFormat.TrimEnd")));
			this.lblOrderQuantity.DisplayFormat.TrimStart = ((bool)(resources.GetObject("lblOrderQuantity.DisplayFormat.TrimStart")));
			this.lblOrderQuantity.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblOrderQuantity.Dock")));
			this.lblOrderQuantity.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("lblOrderQuantity.DropDownFormAlign")));
			this.lblOrderQuantity.EditFormat.CustomFormat = resources.GetString("lblOrderQuantity.EditFormat.CustomFormat");
			this.lblOrderQuantity.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblOrderQuantity.EditFormat.FormatType")));
			this.lblOrderQuantity.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("lblOrderQuantity.EditFormat.Inherit")));
			this.lblOrderQuantity.EditFormat.NullText = resources.GetString("lblOrderQuantity.EditFormat.NullText");
			this.lblOrderQuantity.EditFormat.TrimEnd = ((bool)(resources.GetObject("lblOrderQuantity.EditFormat.TrimEnd")));
			this.lblOrderQuantity.EditFormat.TrimStart = ((bool)(resources.GetObject("lblOrderQuantity.EditFormat.TrimStart")));
			this.lblOrderQuantity.EditMask = resources.GetString("lblOrderQuantity.EditMask");
			this.lblOrderQuantity.EmptyAsNull = ((bool)(resources.GetObject("lblOrderQuantity.EmptyAsNull")));
			this.lblOrderQuantity.Enabled = ((bool)(resources.GetObject("lblOrderQuantity.Enabled")));
			this.lblOrderQuantity.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("lblOrderQuantity.ErrorInfo.BeepOnError")));
			this.lblOrderQuantity.ErrorInfo.ErrorMessage = resources.GetString("lblOrderQuantity.ErrorInfo.ErrorMessage");
			this.lblOrderQuantity.ErrorInfo.ErrorMessageCaption = resources.GetString("lblOrderQuantity.ErrorInfo.ErrorMessageCaption");
			this.lblOrderQuantity.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("lblOrderQuantity.ErrorInfo.ShowErrorMessage")));
			this.lblOrderQuantity.ErrorInfo.ValueOnError = ((object)(resources.GetObject("lblOrderQuantity.ErrorInfo.ValueOnError")));
			this.lblOrderQuantity.Font = ((System.Drawing.Font)(resources.GetObject("lblOrderQuantity.Font")));
			this.lblOrderQuantity.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblOrderQuantity.FormatType")));
			this.lblOrderQuantity.GapHeight = ((int)(resources.GetObject("lblOrderQuantity.GapHeight")));
			this.lblOrderQuantity.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblOrderQuantity.ImeMode")));
			this.lblOrderQuantity.Increment = ((object)(resources.GetObject("lblOrderQuantity.Increment")));
			this.lblOrderQuantity.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("lblOrderQuantity.InitialSelection")));
			this.lblOrderQuantity.Location = ((System.Drawing.Point)(resources.GetObject("lblOrderQuantity.Location")));
			this.lblOrderQuantity.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("lblOrderQuantity.MaskInfo.AutoTabWhenFilled")));
			this.lblOrderQuantity.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("lblOrderQuantity.MaskInfo.CaseSensitive")));
			this.lblOrderQuantity.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("lblOrderQuantity.MaskInfo.CopyWithLiterals")));
			this.lblOrderQuantity.MaskInfo.EditMask = resources.GetString("lblOrderQuantity.MaskInfo.EditMask");
			this.lblOrderQuantity.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("lblOrderQuantity.MaskInfo.EmptyAsNull")));
			this.lblOrderQuantity.MaskInfo.ErrorMessage = resources.GetString("lblOrderQuantity.MaskInfo.ErrorMessage");
			this.lblOrderQuantity.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("lblOrderQuantity.MaskInfo.Inherit")));
			this.lblOrderQuantity.MaskInfo.PromptChar = ((char)(resources.GetObject("lblOrderQuantity.MaskInfo.PromptChar")));
			this.lblOrderQuantity.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("lblOrderQuantity.MaskInfo.ShowLiterals")));
			this.lblOrderQuantity.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("lblOrderQuantity.MaskInfo.StoredEmptyChar")));
			this.lblOrderQuantity.MaxLength = ((int)(resources.GetObject("lblOrderQuantity.MaxLength")));
			this.lblOrderQuantity.Name = "lblOrderQuantity";
			this.lblOrderQuantity.NullText = resources.GetString("lblOrderQuantity.NullText");
			this.lblOrderQuantity.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("lblOrderQuantity.ParseInfo.CaseSensitive")));
			this.lblOrderQuantity.ParseInfo.CustomFormat = resources.GetString("lblOrderQuantity.ParseInfo.CustomFormat");
			this.lblOrderQuantity.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("lblOrderQuantity.ParseInfo.EmptyAsNull")));
			this.lblOrderQuantity.ParseInfo.ErrorMessage = resources.GetString("lblOrderQuantity.ParseInfo.ErrorMessage");
			this.lblOrderQuantity.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("lblOrderQuantity.ParseInfo.FormatType")));
			this.lblOrderQuantity.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("lblOrderQuantity.ParseInfo.Inherit")));
			this.lblOrderQuantity.ParseInfo.NullText = resources.GetString("lblOrderQuantity.ParseInfo.NullText");
			this.lblOrderQuantity.ParseInfo.NumberStyle = ((C1.Win.C1Input.NumberStyleFlags)(resources.GetObject("lblOrderQuantity.ParseInfo.NumberStyle")));
			this.lblOrderQuantity.ParseInfo.TrimEnd = ((bool)(resources.GetObject("lblOrderQuantity.ParseInfo.TrimEnd")));
			this.lblOrderQuantity.ParseInfo.TrimStart = ((bool)(resources.GetObject("lblOrderQuantity.ParseInfo.TrimStart")));
			this.lblOrderQuantity.PasswordChar = ((char)(resources.GetObject("lblOrderQuantity.PasswordChar")));
			this.lblOrderQuantity.PostValidation.CaseSensitive = ((bool)(resources.GetObject("lblOrderQuantity.PostValidation.CaseSensitive")));
			this.lblOrderQuantity.PostValidation.ErrorMessage = resources.GetString("lblOrderQuantity.PostValidation.ErrorMessage");
			this.lblOrderQuantity.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("lblOrderQuantity.PostValidation.Inherit")));
			this.lblOrderQuantity.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("lblOrderQuantity.PostValidation.Validation")));
			this.lblOrderQuantity.PostValidation.Values = ((System.Array)(resources.GetObject("lblOrderQuantity.PostValidation.Values")));
			this.lblOrderQuantity.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("lblOrderQuantity.PostValidation.ValuesExcluded")));
			this.lblOrderQuantity.PreValidation.CaseSensitive = ((bool)(resources.GetObject("lblOrderQuantity.PreValidation.CaseSensitive")));
			this.lblOrderQuantity.PreValidation.ErrorMessage = resources.GetString("lblOrderQuantity.PreValidation.ErrorMessage");
			this.lblOrderQuantity.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("lblOrderQuantity.PreValidation.Inherit")));
			this.lblOrderQuantity.PreValidation.ItemSeparator = resources.GetString("lblOrderQuantity.PreValidation.ItemSeparator");
			this.lblOrderQuantity.PreValidation.PatternString = resources.GetString("lblOrderQuantity.PreValidation.PatternString");
			this.lblOrderQuantity.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("lblOrderQuantity.PreValidation.RegexOptions")));
			this.lblOrderQuantity.PreValidation.TrimEnd = ((bool)(resources.GetObject("lblOrderQuantity.PreValidation.TrimEnd")));
			this.lblOrderQuantity.PreValidation.TrimStart = ((bool)(resources.GetObject("lblOrderQuantity.PreValidation.TrimStart")));
			this.lblOrderQuantity.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("lblOrderQuantity.PreValidation.Validation")));
			this.lblOrderQuantity.ReadOnly = true;
			this.lblOrderQuantity.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblOrderQuantity.RightToLeft")));
			this.lblOrderQuantity.ShowFocusRectangle = ((bool)(resources.GetObject("lblOrderQuantity.ShowFocusRectangle")));
			this.lblOrderQuantity.Size = ((System.Drawing.Size)(resources.GetObject("lblOrderQuantity.Size")));
			this.lblOrderQuantity.TabIndex = ((int)(resources.GetObject("lblOrderQuantity.TabIndex")));
			this.lblOrderQuantity.TabStop = false;
			this.lblOrderQuantity.Tag = ((object)(resources.GetObject("lblOrderQuantity.Tag")));
			this.lblOrderQuantity.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("lblOrderQuantity.TextAlign")));
			this.lblOrderQuantity.TrimEnd = ((bool)(resources.GetObject("lblOrderQuantity.TrimEnd")));
			this.lblOrderQuantity.TrimStart = ((bool)(resources.GetObject("lblOrderQuantity.TrimStart")));
			this.lblOrderQuantity.UserCultureOverride = ((bool)(resources.GetObject("lblOrderQuantity.UserCultureOverride")));
			this.lblOrderQuantity.Value = ((object)(resources.GetObject("lblOrderQuantity.Value")));
			this.lblOrderQuantity.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("lblOrderQuantity.VerticalAlign")));
			this.lblOrderQuantity.Visible = ((bool)(resources.GetObject("lblOrderQuantity.Visible")));
			this.lblOrderQuantity.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("lblOrderQuantity.VisibleButtons")));
			// 
			// dtmDate
			// 
			this.dtmDate.AcceptsEscape = ((bool)(resources.GetObject("dtmDate.AcceptsEscape")));
			this.dtmDate.AccessibleDescription = resources.GetString("dtmDate.AccessibleDescription");
			this.dtmDate.AccessibleName = resources.GetString("dtmDate.AccessibleName");
			this.dtmDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmDate.Anchor")));
			this.dtmDate.AutoSize = ((bool)(resources.GetObject("dtmDate.AutoSize")));
			this.dtmDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmDate.BackgroundImage")));
			this.dtmDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmDate.BorderStyle")));
			// 
			// dtmDate.Calendar
			// 
			this.dtmDate.Calendar.AccessibleDescription = resources.GetString("dtmDate.Calendar.AccessibleDescription");
			this.dtmDate.Calendar.AccessibleName = resources.GetString("dtmDate.Calendar.AccessibleName");
			this.dtmDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmDate.Calendar.AnnuallyBoldedDates")));
			this.dtmDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmDate.Calendar.BackgroundImage")));
			this.dtmDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmDate.Calendar.BoldedDates")));
			this.dtmDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmDate.Calendar.CalendarDimensions")));
			this.dtmDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmDate.Calendar.Enabled")));
			this.dtmDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmDate.Calendar.FirstDayOfWeek")));
			this.dtmDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmDate.Calendar.Font")));
			this.dtmDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmDate.Calendar.ImeMode")));
			this.dtmDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmDate.Calendar.MonthlyBoldedDates")));
			this.dtmDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmDate.Calendar.RightToLeft")));
			this.dtmDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmDate.Calendar.ShowClearButton")));
			this.dtmDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmDate.Calendar.ShowTodayButton")));
			this.dtmDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmDate.Calendar.ShowWeekNumbers")));
			this.dtmDate.CaseSensitive = ((bool)(resources.GetObject("dtmDate.CaseSensitive")));
			this.dtmDate.Culture = ((int)(resources.GetObject("dtmDate.Culture")));
			this.dtmDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmDate.CurrentTimeZone")));
			this.dtmDate.CustomFormat = resources.GetString("dtmDate.CustomFormat");
			this.dtmDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmDate.DaylightTimeAdjustment")));
			this.dtmDate.DisplayFormat.CustomFormat = resources.GetString("dtmDate.DisplayFormat.CustomFormat");
			this.dtmDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmDate.DisplayFormat.FormatType")));
			this.dtmDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmDate.DisplayFormat.Inherit")));
			this.dtmDate.DisplayFormat.NullText = resources.GetString("dtmDate.DisplayFormat.NullText");
			this.dtmDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmDate.DisplayFormat.TrimEnd")));
			this.dtmDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmDate.DisplayFormat.TrimStart")));
			this.dtmDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmDate.Dock")));
			this.dtmDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmDate.DropDownFormAlign")));
			this.dtmDate.EditFormat.CustomFormat = resources.GetString("dtmDate.EditFormat.CustomFormat");
			this.dtmDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmDate.EditFormat.FormatType")));
			this.dtmDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmDate.EditFormat.Inherit")));
			this.dtmDate.EditFormat.NullText = resources.GetString("dtmDate.EditFormat.NullText");
			this.dtmDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmDate.EditFormat.TrimEnd")));
			this.dtmDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmDate.EditFormat.TrimStart")));
			this.dtmDate.EditMask = resources.GetString("dtmDate.EditMask");
			this.dtmDate.EmptyAsNull = ((bool)(resources.GetObject("dtmDate.EmptyAsNull")));
			this.dtmDate.Enabled = ((bool)(resources.GetObject("dtmDate.Enabled")));
			this.dtmDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmDate.ErrorInfo.BeepOnError")));
			this.dtmDate.ErrorInfo.ErrorMessage = resources.GetString("dtmDate.ErrorInfo.ErrorMessage");
			this.dtmDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmDate.ErrorInfo.ErrorMessageCaption");
			this.dtmDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmDate.ErrorInfo.ShowErrorMessage")));
			this.dtmDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmDate.ErrorInfo.ValueOnError")));
			this.dtmDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmDate.Font")));
			this.dtmDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmDate.FormatType")));
			this.dtmDate.GapHeight = ((int)(resources.GetObject("dtmDate.GapHeight")));
			this.dtmDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmDate.GMTOffset")));
			this.dtmDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmDate.ImeMode")));
			this.dtmDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmDate.InitialSelection")));
			this.dtmDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmDate.Location")));
			this.dtmDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmDate.MaskInfo.CaseSensitive")));
			this.dtmDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmDate.MaskInfo.CopyWithLiterals")));
			this.dtmDate.MaskInfo.EditMask = resources.GetString("dtmDate.MaskInfo.EditMask");
			this.dtmDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmDate.MaskInfo.EmptyAsNull")));
			this.dtmDate.MaskInfo.ErrorMessage = resources.GetString("dtmDate.MaskInfo.ErrorMessage");
			this.dtmDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmDate.MaskInfo.Inherit")));
			this.dtmDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmDate.MaskInfo.PromptChar")));
			this.dtmDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmDate.MaskInfo.ShowLiterals")));
			this.dtmDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmDate.MaskInfo.StoredEmptyChar")));
			this.dtmDate.MaxLength = ((int)(resources.GetObject("dtmDate.MaxLength")));
			this.dtmDate.Name = "dtmDate";
			this.dtmDate.NullText = resources.GetString("dtmDate.NullText");
			this.dtmDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmDate.ParseInfo.CaseSensitive")));
			this.dtmDate.ParseInfo.CustomFormat = resources.GetString("dtmDate.ParseInfo.CustomFormat");
			this.dtmDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmDate.ParseInfo.DateTimeStyle")));
			this.dtmDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmDate.ParseInfo.EmptyAsNull")));
			this.dtmDate.ParseInfo.ErrorMessage = resources.GetString("dtmDate.ParseInfo.ErrorMessage");
			this.dtmDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmDate.ParseInfo.FormatType")));
			this.dtmDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmDate.ParseInfo.Inherit")));
			this.dtmDate.ParseInfo.NullText = resources.GetString("dtmDate.ParseInfo.NullText");
			this.dtmDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmDate.ParseInfo.TrimEnd")));
			this.dtmDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmDate.ParseInfo.TrimStart")));
			this.dtmDate.PasswordChar = ((char)(resources.GetObject("dtmDate.PasswordChar")));
			this.dtmDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmDate.PostValidation.CaseSensitive")));
			this.dtmDate.PostValidation.ErrorMessage = resources.GetString("dtmDate.PostValidation.ErrorMessage");
			this.dtmDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmDate.PostValidation.Inherit")));
			this.dtmDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmDate.PostValidation.Validation")));
			this.dtmDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmDate.PostValidation.Values")));
			this.dtmDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmDate.PostValidation.ValuesExcluded")));
			this.dtmDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmDate.PreValidation.CaseSensitive")));
			this.dtmDate.PreValidation.ErrorMessage = resources.GetString("dtmDate.PreValidation.ErrorMessage");
			this.dtmDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmDate.PreValidation.Inherit")));
			this.dtmDate.PreValidation.ItemSeparator = resources.GetString("dtmDate.PreValidation.ItemSeparator");
			this.dtmDate.PreValidation.PatternString = resources.GetString("dtmDate.PreValidation.PatternString");
			this.dtmDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmDate.PreValidation.RegexOptions")));
			this.dtmDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmDate.PreValidation.TrimEnd")));
			this.dtmDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmDate.PreValidation.TrimStart")));
			this.dtmDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmDate.PreValidation.Validation")));
			this.dtmDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmDate.RightToLeft")));
			this.dtmDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmDate.ShowFocusRectangle")));
			this.dtmDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmDate.Size")));
			this.dtmDate.TabIndex = ((int)(resources.GetObject("dtmDate.TabIndex")));
			this.dtmDate.Tag = ((object)(resources.GetObject("dtmDate.Tag")));
			this.dtmDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmDate.TextAlign")));
			this.dtmDate.TrimEnd = ((bool)(resources.GetObject("dtmDate.TrimEnd")));
			this.dtmDate.TrimStart = ((bool)(resources.GetObject("dtmDate.TrimStart")));
			this.dtmDate.UserCultureOverride = ((bool)(resources.GetObject("dtmDate.UserCultureOverride")));
			this.dtmDate.Value = ((object)(resources.GetObject("dtmDate.Value")));
			this.dtmDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmDate.VerticalAlign")));
			this.dtmDate.Visible = ((bool)(resources.GetObject("dtmDate.Visible")));
			this.dtmDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmDate.VisibleButtons")));
			this.dtmDate.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dtmDate_KeyDown);
			this.dtmDate.Validating += new System.ComponentModel.CancelEventHandler(this.dtmDate_Validating);
			this.dtmDate.DropDownClosed += new DropDownClosedEventHandler(this.dtmDate_DropDownClosed);
			// 
			// txtUnitCode
			// 
			this.txtUnitCode.AccessibleDescription = resources.GetString("txtUnitCode.AccessibleDescription");
			this.txtUnitCode.AccessibleName = resources.GetString("txtUnitCode.AccessibleName");
			this.txtUnitCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtUnitCode.Anchor")));
			this.txtUnitCode.AutoSize = ((bool)(resources.GetObject("txtUnitCode.AutoSize")));
			this.txtUnitCode.BackColor = System.Drawing.SystemColors.Control;
			this.txtUnitCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtUnitCode.BackgroundImage")));
			this.txtUnitCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtUnitCode.Dock")));
			this.txtUnitCode.Enabled = ((bool)(resources.GetObject("txtUnitCode.Enabled")));
			this.txtUnitCode.Font = ((System.Drawing.Font)(resources.GetObject("txtUnitCode.Font")));
			this.txtUnitCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtUnitCode.ImeMode")));
			this.txtUnitCode.Location = ((System.Drawing.Point)(resources.GetObject("txtUnitCode.Location")));
			this.txtUnitCode.MaxLength = ((int)(resources.GetObject("txtUnitCode.MaxLength")));
			this.txtUnitCode.Multiline = ((bool)(resources.GetObject("txtUnitCode.Multiline")));
			this.txtUnitCode.Name = "txtUnitCode";
			this.txtUnitCode.PasswordChar = ((char)(resources.GetObject("txtUnitCode.PasswordChar")));
			this.txtUnitCode.ReadOnly = true;
			this.txtUnitCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtUnitCode.RightToLeft")));
			this.txtUnitCode.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtUnitCode.ScrollBars")));
			this.txtUnitCode.Size = ((System.Drawing.Size)(resources.GetObject("txtUnitCode.Size")));
			this.txtUnitCode.TabIndex = ((int)(resources.GetObject("txtUnitCode.TabIndex")));
			this.txtUnitCode.TabStop = false;
			this.txtUnitCode.Text = resources.GetString("txtUnitCode.Text");
			this.txtUnitCode.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtUnitCode.TextAlign")));
			this.txtUnitCode.Visible = ((bool)(resources.GetObject("txtUnitCode.Visible")));
			this.txtUnitCode.WordWrap = ((bool)(resources.GetObject("txtUnitCode.WordWrap")));
			// 
			// txtDescription
			// 
			this.txtDescription.AccessibleDescription = resources.GetString("txtDescription.AccessibleDescription");
			this.txtDescription.AccessibleName = resources.GetString("txtDescription.AccessibleName");
			this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtDescription.Anchor")));
			this.txtDescription.AutoSize = ((bool)(resources.GetObject("txtDescription.AutoSize")));
			this.txtDescription.BackColor = System.Drawing.SystemColors.Control;
			this.txtDescription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtDescription.BackgroundImage")));
			this.txtDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtDescription.Dock")));
			this.txtDescription.Enabled = ((bool)(resources.GetObject("txtDescription.Enabled")));
			this.txtDescription.Font = ((System.Drawing.Font)(resources.GetObject("txtDescription.Font")));
			this.txtDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtDescription.ImeMode")));
			this.txtDescription.Location = ((System.Drawing.Point)(resources.GetObject("txtDescription.Location")));
			this.txtDescription.MaxLength = ((int)(resources.GetObject("txtDescription.MaxLength")));
			this.txtDescription.Multiline = ((bool)(resources.GetObject("txtDescription.Multiline")));
			this.txtDescription.Name = "txtDescription";
			this.txtDescription.PasswordChar = ((char)(resources.GetObject("txtDescription.PasswordChar")));
			this.txtDescription.ReadOnly = true;
			this.txtDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtDescription.RightToLeft")));
			this.txtDescription.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtDescription.ScrollBars")));
			this.txtDescription.Size = ((System.Drawing.Size)(resources.GetObject("txtDescription.Size")));
			this.txtDescription.TabIndex = ((int)(resources.GetObject("txtDescription.TabIndex")));
			this.txtDescription.TabStop = false;
			this.txtDescription.Text = resources.GetString("txtDescription.Text");
			this.txtDescription.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtDescription.TextAlign")));
			this.txtDescription.Visible = ((bool)(resources.GetObject("txtDescription.Visible")));
			this.txtDescription.WordWrap = ((bool)(resources.GetObject("txtDescription.WordWrap")));
			// 
			// txtRevision
			// 
			this.txtRevision.AccessibleDescription = resources.GetString("txtRevision.AccessibleDescription");
			this.txtRevision.AccessibleName = resources.GetString("txtRevision.AccessibleName");
			this.txtRevision.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtRevision.Anchor")));
			this.txtRevision.AutoSize = ((bool)(resources.GetObject("txtRevision.AutoSize")));
			this.txtRevision.BackColor = System.Drawing.SystemColors.Control;
			this.txtRevision.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtRevision.BackgroundImage")));
			this.txtRevision.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtRevision.Dock")));
			this.txtRevision.Enabled = ((bool)(resources.GetObject("txtRevision.Enabled")));
			this.txtRevision.Font = ((System.Drawing.Font)(resources.GetObject("txtRevision.Font")));
			this.txtRevision.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtRevision.ImeMode")));
			this.txtRevision.Location = ((System.Drawing.Point)(resources.GetObject("txtRevision.Location")));
			this.txtRevision.MaxLength = ((int)(resources.GetObject("txtRevision.MaxLength")));
			this.txtRevision.Multiline = ((bool)(resources.GetObject("txtRevision.Multiline")));
			this.txtRevision.Name = "txtRevision";
			this.txtRevision.PasswordChar = ((char)(resources.GetObject("txtRevision.PasswordChar")));
			this.txtRevision.ReadOnly = true;
			this.txtRevision.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtRevision.RightToLeft")));
			this.txtRevision.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtRevision.ScrollBars")));
			this.txtRevision.Size = ((System.Drawing.Size)(resources.GetObject("txtRevision.Size")));
			this.txtRevision.TabIndex = ((int)(resources.GetObject("txtRevision.TabIndex")));
			this.txtRevision.TabStop = false;
			this.txtRevision.Text = resources.GetString("txtRevision.Text");
			this.txtRevision.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtRevision.TextAlign")));
			this.txtRevision.Visible = ((bool)(resources.GetObject("txtRevision.Visible")));
			this.txtRevision.WordWrap = ((bool)(resources.GetObject("txtRevision.WordWrap")));
			// 
			// txtPartNumber
			// 
			this.txtPartNumber.AccessibleDescription = resources.GetString("txtPartNumber.AccessibleDescription");
			this.txtPartNumber.AccessibleName = resources.GetString("txtPartNumber.AccessibleName");
			this.txtPartNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPartNumber.Anchor")));
			this.txtPartNumber.AutoSize = ((bool)(resources.GetObject("txtPartNumber.AutoSize")));
			this.txtPartNumber.BackColor = System.Drawing.SystemColors.Control;
			this.txtPartNumber.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPartNumber.BackgroundImage")));
			this.txtPartNumber.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPartNumber.Dock")));
			this.txtPartNumber.Enabled = ((bool)(resources.GetObject("txtPartNumber.Enabled")));
			this.txtPartNumber.Font = ((System.Drawing.Font)(resources.GetObject("txtPartNumber.Font")));
			this.txtPartNumber.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPartNumber.ImeMode")));
			this.txtPartNumber.Location = ((System.Drawing.Point)(resources.GetObject("txtPartNumber.Location")));
			this.txtPartNumber.MaxLength = ((int)(resources.GetObject("txtPartNumber.MaxLength")));
			this.txtPartNumber.Multiline = ((bool)(resources.GetObject("txtPartNumber.Multiline")));
			this.txtPartNumber.Name = "txtPartNumber";
			this.txtPartNumber.PasswordChar = ((char)(resources.GetObject("txtPartNumber.PasswordChar")));
			this.txtPartNumber.ReadOnly = true;
			this.txtPartNumber.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPartNumber.RightToLeft")));
			this.txtPartNumber.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtPartNumber.ScrollBars")));
			this.txtPartNumber.Size = ((System.Drawing.Size)(resources.GetObject("txtPartNumber.Size")));
			this.txtPartNumber.TabIndex = ((int)(resources.GetObject("txtPartNumber.TabIndex")));
			this.txtPartNumber.TabStop = false;
			this.txtPartNumber.Text = resources.GetString("txtPartNumber.Text");
			this.txtPartNumber.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPartNumber.TextAlign")));
			this.txtPartNumber.Visible = ((bool)(resources.GetObject("txtPartNumber.Visible")));
			this.txtPartNumber.WordWrap = ((bool)(resources.GetObject("txtPartNumber.WordWrap")));
			// 
			// txtLine
			// 
			this.txtLine.AccessibleDescription = resources.GetString("txtLine.AccessibleDescription");
			this.txtLine.AccessibleName = resources.GetString("txtLine.AccessibleName");
			this.txtLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtLine.Anchor")));
			this.txtLine.AutoSize = ((bool)(resources.GetObject("txtLine.AutoSize")));
			this.txtLine.BackColor = System.Drawing.SystemColors.Control;
			this.txtLine.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtLine.BackgroundImage")));
			this.txtLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtLine.Dock")));
			this.txtLine.Enabled = ((bool)(resources.GetObject("txtLine.Enabled")));
			this.txtLine.Font = ((System.Drawing.Font)(resources.GetObject("txtLine.Font")));
			this.txtLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtLine.ImeMode")));
			this.txtLine.Location = ((System.Drawing.Point)(resources.GetObject("txtLine.Location")));
			this.txtLine.MaxLength = ((int)(resources.GetObject("txtLine.MaxLength")));
			this.txtLine.Multiline = ((bool)(resources.GetObject("txtLine.Multiline")));
			this.txtLine.Name = "txtLine";
			this.txtLine.PasswordChar = ((char)(resources.GetObject("txtLine.PasswordChar")));
			this.txtLine.ReadOnly = true;
			this.txtLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtLine.RightToLeft")));
			this.txtLine.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtLine.ScrollBars")));
			this.txtLine.Size = ((System.Drawing.Size)(resources.GetObject("txtLine.Size")));
			this.txtLine.TabIndex = ((int)(resources.GetObject("txtLine.TabIndex")));
			this.txtLine.TabStop = false;
			this.txtLine.Text = resources.GetString("txtLine.Text");
			this.txtLine.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtLine.TextAlign")));
			this.txtLine.Visible = ((bool)(resources.GetObject("txtLine.Visible")));
			this.txtLine.WordWrap = ((bool)(resources.GetObject("txtLine.WordWrap")));
			// 
			// txtCCN
			// 
			this.txtCCN.AccessibleDescription = resources.GetString("txtCCN.AccessibleDescription");
			this.txtCCN.AccessibleName = resources.GetString("txtCCN.AccessibleName");
			this.txtCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCCN.Anchor")));
			this.txtCCN.AutoSize = ((bool)(resources.GetObject("txtCCN.AutoSize")));
			this.txtCCN.BackColor = System.Drawing.SystemColors.Control;
			this.txtCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCCN.BackgroundImage")));
			this.txtCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCCN.Dock")));
			this.txtCCN.Enabled = ((bool)(resources.GetObject("txtCCN.Enabled")));
			this.txtCCN.Font = ((System.Drawing.Font)(resources.GetObject("txtCCN.Font")));
			this.txtCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCCN.ImeMode")));
			this.txtCCN.Location = ((System.Drawing.Point)(resources.GetObject("txtCCN.Location")));
			this.txtCCN.MaxLength = ((int)(resources.GetObject("txtCCN.MaxLength")));
			this.txtCCN.Multiline = ((bool)(resources.GetObject("txtCCN.Multiline")));
			this.txtCCN.Name = "txtCCN";
			this.txtCCN.PasswordChar = ((char)(resources.GetObject("txtCCN.PasswordChar")));
			this.txtCCN.ReadOnly = true;
			this.txtCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCCN.RightToLeft")));
			this.txtCCN.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCCN.ScrollBars")));
			this.txtCCN.Size = ((System.Drawing.Size)(resources.GetObject("txtCCN.Size")));
			this.txtCCN.TabIndex = ((int)(resources.GetObject("txtCCN.TabIndex")));
			this.txtCCN.TabStop = false;
			this.txtCCN.Text = resources.GetString("txtCCN.Text");
			this.txtCCN.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCCN.TextAlign")));
			this.txtCCN.Visible = ((bool)(resources.GetObject("txtCCN.Visible")));
			this.txtCCN.WordWrap = ((bool)(resources.GetObject("txtCCN.WordWrap")));
			// 
			// txtCategory
			// 
			this.txtCategory.AccessibleDescription = resources.GetString("txtCategory.AccessibleDescription");
			this.txtCategory.AccessibleName = resources.GetString("txtCategory.AccessibleName");
			this.txtCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCategory.Anchor")));
			this.txtCategory.AutoSize = ((bool)(resources.GetObject("txtCategory.AutoSize")));
			this.txtCategory.BackColor = System.Drawing.SystemColors.Control;
			this.txtCategory.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCategory.BackgroundImage")));
			this.txtCategory.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCategory.Dock")));
			this.txtCategory.Enabled = ((bool)(resources.GetObject("txtCategory.Enabled")));
			this.txtCategory.Font = ((System.Drawing.Font)(resources.GetObject("txtCategory.Font")));
			this.txtCategory.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCategory.ImeMode")));
			this.txtCategory.Location = ((System.Drawing.Point)(resources.GetObject("txtCategory.Location")));
			this.txtCategory.MaxLength = ((int)(resources.GetObject("txtCategory.MaxLength")));
			this.txtCategory.Multiline = ((bool)(resources.GetObject("txtCategory.Multiline")));
			this.txtCategory.Name = "txtCategory";
			this.txtCategory.PasswordChar = ((char)(resources.GetObject("txtCategory.PasswordChar")));
			this.txtCategory.ReadOnly = true;
			this.txtCategory.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCategory.RightToLeft")));
			this.txtCategory.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCategory.ScrollBars")));
			this.txtCategory.Size = ((System.Drawing.Size)(resources.GetObject("txtCategory.Size")));
			this.txtCategory.TabIndex = ((int)(resources.GetObject("txtCategory.TabIndex")));
			this.txtCategory.TabStop = false;
			this.txtCategory.Text = resources.GetString("txtCategory.Text");
			this.txtCategory.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCategory.TextAlign")));
			this.txtCategory.Visible = ((bool)(resources.GetObject("txtCategory.Visible")));
			this.txtCategory.WordWrap = ((bool)(resources.GetObject("txtCategory.WordWrap")));
			// 
			// lblCategory
			// 
			this.lblCategory.AccessibleDescription = resources.GetString("lblCategory.AccessibleDescription");
			this.lblCategory.AccessibleName = resources.GetString("lblCategory.AccessibleName");
			this.lblCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCategory.Anchor")));
			this.lblCategory.AutoSize = ((bool)(resources.GetObject("lblCategory.AutoSize")));
			this.lblCategory.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCategory.Dock")));
			this.lblCategory.Enabled = ((bool)(resources.GetObject("lblCategory.Enabled")));
			this.lblCategory.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblCategory.Font = ((System.Drawing.Font)(resources.GetObject("lblCategory.Font")));
			this.lblCategory.ForeColor = System.Drawing.Color.Black;
			this.lblCategory.Image = ((System.Drawing.Image)(resources.GetObject("lblCategory.Image")));
			this.lblCategory.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCategory.ImageAlign")));
			this.lblCategory.ImageIndex = ((int)(resources.GetObject("lblCategory.ImageIndex")));
			this.lblCategory.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCategory.ImeMode")));
			this.lblCategory.Location = ((System.Drawing.Point)(resources.GetObject("lblCategory.Location")));
			this.lblCategory.Name = "lblCategory";
			this.lblCategory.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCategory.RightToLeft")));
			this.lblCategory.Size = ((System.Drawing.Size)(resources.GetObject("lblCategory.Size")));
			this.lblCategory.TabIndex = ((int)(resources.GetObject("lblCategory.TabIndex")));
			this.lblCategory.Text = resources.GetString("lblCategory.Text");
			this.lblCategory.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCategory.TextAlign")));
			this.lblCategory.Visible = ((bool)(resources.GetObject("lblCategory.Visible")));
			// 
			// lblWarning
			// 
			this.lblWarning.AccessibleDescription = resources.GetString("lblWarning.AccessibleDescription");
			this.lblWarning.AccessibleName = resources.GetString("lblWarning.AccessibleName");
			this.lblWarning.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblWarning.Anchor")));
			this.lblWarning.AutoSize = ((bool)(resources.GetObject("lblWarning.AutoSize")));
			this.lblWarning.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblWarning.Dock")));
			this.lblWarning.Enabled = ((bool)(resources.GetObject("lblWarning.Enabled")));
			this.lblWarning.Font = ((System.Drawing.Font)(resources.GetObject("lblWarning.Font")));
			this.lblWarning.Image = ((System.Drawing.Image)(resources.GetObject("lblWarning.Image")));
			this.lblWarning.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblWarning.ImageAlign")));
			this.lblWarning.ImageIndex = ((int)(resources.GetObject("lblWarning.ImageIndex")));
			this.lblWarning.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblWarning.ImeMode")));
			this.lblWarning.Location = ((System.Drawing.Point)(resources.GetObject("lblWarning.Location")));
			this.lblWarning.Name = "lblWarning";
			this.lblWarning.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblWarning.RightToLeft")));
			this.lblWarning.Size = ((System.Drawing.Size)(resources.GetObject("lblWarning.Size")));
			this.lblWarning.TabIndex = ((int)(resources.GetObject("lblWarning.TabIndex")));
			this.lblWarning.Text = resources.GetString("lblWarning.Text");
			this.lblWarning.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblWarning.TextAlign")));
			this.lblWarning.Visible = ((bool)(resources.GetObject("lblWarning.Visible")));
			// 
			// PODeliverySchedule
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.lblWarning);
			this.Controls.Add(this.txtCategory);
			this.Controls.Add(this.lblCategory);
			this.Controls.Add(this.txtCCN);
			this.Controls.Add(this.txtLine);
			this.Controls.Add(this.txtPartNumber);
			this.Controls.Add(this.txtRevision);
			this.Controls.Add(this.txtDescription);
			this.Controls.Add(this.txtUnitCode);
			this.Controls.Add(this.dgrdData);
			this.Controls.Add(this.lblTotalDelivery);
			this.Controls.Add(this.lblOrderQuantity);
			this.Controls.Add(this.lblTotalQty);
			this.Controls.Add(this.lblOrderQty);
			this.Controls.Add(this.lblUM);
			this.Controls.Add(this.lblLine);
			this.Controls.Add(this.lblItem);
			this.Controls.Add(this.lblDescription);
			this.Controls.Add(this.lblRevision);
			this.Controls.Add(this.lblCCN);
			this.Controls.Add(this.btnPrint);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.btnDelete);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.dtmDate);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.KeyPreview = true;
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "PODeliverySchedule";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PODeliverySchedule_KeyDown);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.PODeliverySchedule_Closing);
			this.Load += new System.EventHandler(this.PODeliverySchedule_Load);
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.lblTotalDelivery)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.lblOrderQuantity)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmDate)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void btnClose_Click(object sender, EventArgs e)
		{
			this.Close();
		}

		//**************************************************************************              
		///    <Description>
		///       Display the order information such as order no
		///       
		///    </Description>
		///    <Inputs>
		///        Purchase Order Detail ID
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       Tuesday, February 01, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void DisplayPurchaseOrderInformation() 
		{
			//lblOrderNo.Text = objSaleOrderInformationVO.SaleOrderNo;
			txtLine.Text = objPurchaseOrderInformationVO.PurchaseOrderLine.ToString();
			txtPartNumber.Text = objPurchaseOrderInformationVO.ProductCode;
			txtRevision.Text = objPurchaseOrderInformationVO.ProductRevision;
			txtDescription.Text = objPurchaseOrderInformationVO.ProductDescription;
			txtUnitCode.Text = objPurchaseOrderInformationVO.UnitCode;
			txtCCN.Text = objPurchaseOrderInformationVO.CCNCode;
			lblOrderQuantity.Value = objPurchaseOrderInformationVO.OrderQuantity.ToString();

			//get the approval status
			PODeliveryScheduleBO objPODeliveryScheduleBO = new PODeliveryScheduleBO();
			objPurchaseOrderInformationVO.ApprovalStatus = objPODeliveryScheduleBO.GetPurchaseOrderApprovalStatus(objPurchaseOrderInformationVO.PurchaseOrderDetailID);

			// 25-05-2006 added by dungla: display category information
			txtCategory.Text = objPurchaseOrderInformationVO.Category;
		}
		//**************************************************************************              
		///    <Description>
		///       Load the Data into Grid (list of Purchase Order Delivery )
		///       After loading, this method also set some properties for the grid
		///       such as centering heading, invisible several columns, ect ..
		///    </Description>
		///    <Inputs>
		///        Purchase Order Detail ID
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       Tuesday, February 01, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void LoadDeliverySchedule(int intPurchaseOrderLineID) 
		{

			PODeliveryScheduleBO objPODeliveryScheduleBO = new PODeliveryScheduleBO();
			dstDeliverySchedule = objPODeliveryScheduleBO.GetDeliverySchedule(intPurchaseOrderLineID);
			dgrdData.DataSource = dstDeliverySchedule.Tables[0];
			FormControlComponents.RestoreGridLayout(dgrdData,  dtGridDesign);
			
			//Set the read only for the LINE Column and Delivery No
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.DELIVERYLINE_FLD].Locked = true;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.RECEIVEDQUANTITY_FLD].Locked = true;

			//align right for Line, Delivery Quantity, Delivery No
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.DELIVERYLINE_FLD].Style.HorizontalAlignment = AlignHorzEnum.Far;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].Style.HorizontalAlignment = AlignHorzEnum.Far;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.RECEIVEDQUANTITY_FLD].Style.HorizontalAlignment = AlignHorzEnum.Far;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.ADJUSTMENT_FLD].Style.HorizontalAlignment = AlignHorzEnum.Far;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
			dgrdData.Columns[PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].Editor = dtmDate;
			dgrdData.Columns[PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].NumberFormat = Constants.DATETIME_FORMAT_HOUR;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.STARTDATE_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
			dgrdData.Columns[PO_DeliveryScheduleTable.STARTDATE_FLD].Editor = dtmDate;
			dgrdData.Columns[PO_DeliveryScheduleTable.STARTDATE_FLD].NumberFormat = Constants.DATETIME_FORMAT_HOUR;
			dgrdData.Columns[WARNING].ValueItems.Presentation = PresentationEnum.CheckBox;
			dgrdData.Splits[0].DisplayColumns[WARNING].Style.HorizontalAlignment = AlignHorzEnum.Center;
			//Set the Delivery Quantity
			dgrdData.Columns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].NumberFormat = Constants.DECIMAL_NUMBERFORMAT;
			dgrdData.Columns[PO_DeliveryScheduleTable.RECEIVEDQUANTITY_FLD].NumberFormat = Constants.DECIMAL_NUMBERFORMAT;
			dgrdData.Columns[PO_DeliveryScheduleTable.ADJUSTMENT_FLD].NumberFormat = Constants.DECIMAL_NUMBERFORMAT;
			
			foreach (C1DisplayColumn dcol in dgrdData.Splits[0].DisplayColumns)
			{
				dcol.Locked = true;
			}
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].Locked = false;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].Locked = false;
			dgrdData.Splits[0].DisplayColumns[PO_DeliveryScheduleTable.STARTDATE_FLD].Locked = false;

			//Count the total of Delivery Quantity
			lblTotalDelivery.Value = SumTotalDeliveryQuantity().ToString();
			
			// Set Text 
			dgrdData.Columns[WARNING].Caption = lblWarning.Text;
		}

		//**************************************************************************              
		///    <Description>
		///       This method is used to calculate the total Delivery Quantity
		
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       Tuesday, February 01, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private decimal SumTotalDeliveryQuantity ()
		{
			const string METHOD_NAME = THIS + ".SumTotalDeliveryQuantity()";
			try 
			{
				int intGridRows = this.dgrdData.RowCount;
			
				// now compute the number of unique values for the country and city columns
				decimal dblTotalValue = 0 ;
				for(int i = 0; i < intGridRows; i++)
				{
					try 
					{
						dblTotalValue += (decimal) this.dgrdData[i,PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD];
					}
					catch
					{
						dblTotalValue += 0;
					}
				}
				return dblTotalValue;
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				return 0;
			}
		}

		private void EnableDisableButtons()
		{
			dgrdData.AllowAddNew = true;
			dgrdData.AllowDelete = true;
			dgrdData.AllowUpdate = true;
		}
		private void PODeliverySchedule_Load(object sender, EventArgs e)
		{
			if (objPurchaseOrderInformationVO == null || objPurchaseOrderInformationVO.PurchaseOrderDetailID <=0) 
			{
				this.Close();
				// You don't have the right to view this item
				PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW,MessageBoxIcon.Warning);
				return;
			}
			
			//set the minimum date
			const string METHOD_NAME = THIS + ".PODeliverySchedule_Load()";
			try 
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW, MessageBoxIcon.Warning);
					return;
				}

				enumAction = EnumAction.Default;

				//Keep the Grid Design (for multi languages)
				dtGridDesign = new DataTable();
				dtGridDesign = FormControlComponents.StoreGridLayout(dgrdData);
				dtmDate.CustomFormat = Constants.DATETIME_FORMAT_HOUR;

				//Display Sale Order Information
				DisplayPurchaseOrderInformation();

				//Load the Delivery Detail data
				LoadDeliverySchedule(objPurchaseOrderInformationVO.PurchaseOrderDetailID);
				//change the color of cells which have start date < server date
				dtmServerDate = (new UtilsBO()).GetDBDate();
				foreach (DataRow drow in dstDeliverySchedule.Tables[0].Rows)
				{
					drow[WARNING] = false;
					if (drow[PO_DeliveryScheduleTable.STARTDATE_FLD] != DBNull.Value)
					{
						if ((DateTime)drow[PO_DeliveryScheduleTable.STARTDATE_FLD] < dtmServerDate)
						{
							drow[WARNING] = true;
						}
					}
				}

				dgrdData.Splits[0].DisplayColumns[WARNING].Visible = true;
				
				objPurchaseOrderInformationVO.OrderDate = new DateTime(objPurchaseOrderInformationVO.OrderDate.Year,
					objPurchaseOrderInformationVO.OrderDate.Month,
					objPurchaseOrderInformationVO.OrderDate.Day,
					0, 0, 0);

				//Diable or Enable buttons
				EnableDisableButtons();

				if (objPurchaseOrderInformationVO.ApprovalStatus)
				{
					btnSave.Enabled = false;
					btnDelete.Enabled = false;
				}
				else
				{
					dgrdData.AllowAddNew = true;
					dgrdData.AllowDelete = true;
					dgrdData.AllowUpdate = true;

					btnSave.Enabled = true;
					btnDelete.Enabled = true;
				}
			}
			catch (PCSException ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}

		//**************************************************************************              
		///    <Description>
		///       Save Data into Database
		///       It will call the SaveDatabase method
		///       and after that it will display a successful message 
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private bool CheckBeforeSaving()
		{
			//for (int i =0; i < GetRowsCount() - 1; i++)
			for (int i =0; i < GetRowsCount(); i++)
			{
				if (dgrdData[i, PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].ToString() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
					dgrdData.Row = i;
					dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[PO_DeliveryScheduleTable.SCHEDULEDATE_FLD]);
					dgrdData.Focus();
					return false;
				}
				if (dgrdData[i, PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].ToString() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
					dgrdData.Row = i;
					dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD]);
					dgrdData.Focus();
					return false;
				}
			}

			//Check the business 
			decimal dblTotalDeliveryQuantity = SumTotalDeliveryQuantity();
			lblTotalDelivery.Value = dblTotalDeliveryQuantity.ToString();
			if (dblTotalDeliveryQuantity > decimal.Parse(lblOrderQuantity.Text))
			{
				//Display message here
				//MessageBox.Show("The total delivery Quantity must be less than or equal to Order Quantity");
				PCSMessageBox.Show(ErrorCode.MESSAGE_OVER_DELIVERYQTY,MessageBoxIcon.Error);
				return false;
			}

			return true;

		}
		private void SaveToDatabase()
		{
			try 
			{
				//Init the BO class
				PODeliveryScheduleBO objPODeliveryScheduleBO = new PODeliveryScheduleBO();
				//call the update data set method
				for(int i =0; i <dstDeliverySchedule.Tables[0].Rows.Count; i++)
				{
					if (dstDeliverySchedule.Tables[0].Rows[i].RowState != DataRowState.Deleted)
					{
						dstDeliverySchedule.Tables[0].Rows[i][PO_DeliveryScheduleTable.PURCHASEORDERDETAILID_FLD] = objPurchaseOrderInformationVO.PurchaseOrderDetailID;
					}
				}
				objPODeliveryScheduleBO.UpdateDeliveryDataSet(dstDeliverySchedule, objPurchaseOrderInformationVO.PurchaseOrderDetailID);

				enumAction = EnumAction.Default;
				
				//re calculate the total Delivery quantity
				lblTotalDelivery.Value = SumTotalDeliveryQuantity().ToString();
			}
			catch (PCSException ex)
			{
				throw ex;
			}
			catch (Exception ex) 
			{
				throw ex;
			}
		}

		private void PODeliverySchedule_Closing(object sender, CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".PODeliverySchedule_Closing()";
			try
			{
				// 04-05-2006 removed: dungla fix bug 3939 for NganNT
//				if (dgrdData.EditActive)
//				{
//					e.Cancel = true;
//					return;
//				}
				if (enumAction == EnumAction.Add || enumAction == EnumAction.Edit)
				{
					DialogResult dlgResult = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_STORE_INTO_DATABASE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
					switch (dlgResult)
					{
						case DialogResult.Yes:
							if (!CheckBeforeSaving())
							{
								e.Cancel = true;
								break;
							}

							SaveToDatabase();
							e.Cancel = false;
							break;
						case DialogResult.No:
							e.Cancel = false;
							break;
						case DialogResult.Cancel:
							e.Cancel = true;
							break;
					}
				}
			}			
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				e.Cancel = true;
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				e.Cancel = true;

			}
		
		}

		private void btnSave_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSave_Click()";
			try 
			{
				if (dgrdData.EditActive) return;
				if (!dgrdData.EditActive && !CheckBeforeSaving())
				{
					return ;
				}
				SaveToDatabase();
				LoadDeliverySchedule(objPurchaseOrderInformationVO.PurchaseOrderDetailID);
				enumAction = EnumAction.Default;
				PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA, MessageBoxIcon.Information);
			}
			catch (PCSDBException ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		//**************************************************************************              
		///    <Description>
		///       This method is used to check all the Delivery Schedule before deleting 
		
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       Tuesday, February 01, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private bool IsDeleteAllSchedule()
		{
			int intGridRows = this.dgrdData.RowCount;

			
			for(int i = 0; i < intGridRows; i++)
			{
				string strCommit = dgrdData[i,PO_DeliveryScheduleTable.RECEIVEDQUANTITY_FLD].ToString().Trim();
				if (strCommit != String.Empty) 
				{
					if (decimal.Parse(strCommit)>0)
						return false;
				}
			}
			return true;
		}

		private void btnDelete_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnDelete_Click()";
			DialogResult result;
			if (dgrdData.EditActive) return;
			result = PCSMessageBox.Show(ErrorCode.MESSAGE_DELETE_RECORD, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
			if (result == DialogResult.Yes)
			{
				try
				{
					if (!IsDeleteAllSchedule()) 
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_PODELIVERY_CANNOTDELETE,MessageBoxIcon.Error);
						return;
					}
					PODeliveryScheduleBO objPODeliveryScheduleBO = new PODeliveryScheduleBO();
					objPODeliveryScheduleBO.DeleteDeliveryDetail(objPurchaseOrderInformationVO.PurchaseOrderDetailID);
					LoadDeliverySchedule(objPurchaseOrderInformationVO.PurchaseOrderDetailID);
					enumAction = EnumAction.Default;
				}
				catch (Exception ex)
				{
					PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
					// log message.
					try
					{
						Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
					}
					catch
					{
						PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
					}
				}

			}
		}

		//**************************************************************************              
		///    <Description>
		///       When adding a new row, there are some column will recive default value
		///       This method is used to update the default column
		///    </Description>
		///    <Inputs>
		///        Sale Order Detail ID
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       Tuesday, February 01, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void AssignDefaultValue()
		{
			const string METHOD_NAME = THIS + ".AssignDefaultValue()";
			try 
			{
				if (dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].ToString() == string.Empty
					&& dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].ToString() == string.Empty)
				{
					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.DELIVERYLINE_FLD] = GetRowsCount() + 1;
					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD] = decimal.Parse(lblOrderQuantity.Text) - decimal.Parse(lblTotalDelivery.Text);					
					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.SCHEDULEDATE_FLD] = objPurchaseOrderInformationVO.OrderDate.ToString();
					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.PURCHASEORDERDETAILID_FLD] = objPurchaseOrderInformationVO.PurchaseOrderDetailID;
					lblTotalDelivery.Value = objPurchaseOrderInformationVO.OrderQuantity.ToString();
				}
				else{
					CurrencyManager cm;

					//dgrdData.Refresh();
					dgrdData.MoveLast();
					//dgrdData.Row = dgrdData.Row + 1;

					cm = (CurrencyManager) dgrdData.BindingContext[dgrdData.DataSource];
					cm.EndCurrentEdit();
					cm.AddNew();

					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD] = decimal.Parse(lblOrderQuantity.Text) - decimal.Parse(lblTotalDelivery.Text);					
					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.DELIVERYLINE_FLD] = dgrdData.Row + 1;
					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.SCHEDULEDATE_FLD] = objPurchaseOrderInformationVO.OrderDate.ToString();
					dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.PURCHASEORDERDETAILID_FLD] = objPurchaseOrderInformationVO.PurchaseOrderDetailID;
					lblTotalDelivery.Value = objPurchaseOrderInformationVO.OrderQuantity.ToString();
				}
				enumAction = EnumAction.Edit;
			}			
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		private void PODeliverySchedule_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".PODeliverySchedule_KeyDown()";
			if (e.KeyCode == Keys.F12)
			{
				dgrdData.UpdateData();
				//add a new row
				if (!dgrdData.AllowAddNew) return;
				try
				{
					if (decimal.Parse(lblTotalDelivery.Text.Trim()) >= decimal.Parse(lblOrderQuantity.Text.Trim()))
					{
						//MessageBox.Show("There are enought order quantity, you cannot add more row");
						PCSMessageBox.Show(ErrorCode.MESSAGE_PODELIVERY_ENOUGHQTY,MessageBoxIcon.Warning);
						return;
					}
					CurrencyManager cm;

					//dgrdData.Refresh();
					dgrdData.MoveLast();
					//dgrdData.Row = dgrdData.Row + 1;

					cm = (CurrencyManager) dgrdData.BindingContext[dgrdData.DataSource];
					cm.EndCurrentEdit();
					cm.AddNew();
					AssignDefaultValue();
					
					//focus on the first cell
					dgrdData.Focus();
					dgrdData.Col = dstDeliverySchedule.Tables[0].Columns.IndexOf(PO_DeliveryScheduleTable.SCHEDULEDATE_FLD);
				}
				catch (NoNullAllowedException ex) 
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID,MessageBoxIcon.Error);
					// log message.
					try
					{
						Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
					}
					catch
					{
						PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
					}
				}
				catch (ConstraintException ex) 
				{
					PCSMessageBox.Show(ErrorCode.DUPLICATE_KEY,MessageBoxIcon.Error);
					// log message.
					try
					{
						Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
					}
					catch
					{
						PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
					}
				}

				catch (Exception ex)
				{
					PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
					// log message.
					try
					{
						Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
					}
					catch
					{
						PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
					}
				}

			}
		
		}

		private void dgrdData_AfterColUpdate(object sender, ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterColUpdate()";
			try
			{
				if (e.Column.DataColumn.DataField == PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD) 
				{
					//Re calculate the total delivery quantity
					lblTotalDelivery.Value = SumTotalDeliveryQuantity().ToString();
				}
				
				if (e.Column.DataColumn.DataField == PO_DeliveryScheduleTable.ADJUSTMENT_FLD)
				{
					if (dgrdData.Columns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].Value.ToString() != string.Empty)
					{
						dgrdData.Columns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].Value = 
						(Decimal)dgrdData.Columns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].Value + decAdjustment;
					}
					
				}
				enumAction = EnumAction.Edit;
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}
		/// <summary>
		/// dgrdData_AfterDelete
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, September 28 2005</date>
		private void dgrdData_AfterDelete(object sender, EventArgs e)
		{
			//re calculate the total delivery quantity
			const string METHOD_NAME = THIS + ".dgrdData_AfterDelete()";
			try 
			{
				for (int i = 0; i < dgrdData.RowCount; i++)
				{
					if (dgrdData[i, PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].ToString() != string.Empty)
					{
						dgrdData[i, PO_DeliveryScheduleTable.DELIVERYLINE_FLD] = i+1;
					}
				}
				lblTotalDelivery.Value = SumTotalDeliveryQuantity().ToString();
				enumAction = EnumAction.Edit;
			}			
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}

		private void dgrdData_AfterInsert(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterInsert()";
			try 
			{
				lblTotalDelivery.Value = SumTotalDeliveryQuantity().ToString();
				enumAction = EnumAction.Edit;
			}			
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}

		private void dgrdData_AfterUpdate(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterUpdate()";
			try 
			{
				lblTotalDelivery.Value = SumTotalDeliveryQuantity().ToString();
				enumAction = EnumAction.Edit;
			}			
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}

		private void dgrdData_BeforeColUpdate(object sender, BeforeColUpdateEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_BeforeColEdit()";
			try 
			{
				//first check the Delivery Quantity 
				string strValue = String.Empty;
				if (e.Column.DataColumn.DataField == PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD)
				{
					if (e.Column.DataColumn.Value.ToString() == string.Empty) return;
					//Delivery Quantity must be higher 0
					double dblDeliveryQuantity = 0;
					if (e.Column.DataColumn.Value.ToString().Trim() == String.Empty)
					{
						dblDeliveryQuantity = 0 ;
					}
					else
					{
						try 
						{
							dblDeliveryQuantity = double.Parse(e.Column.DataColumn.Value.ToString());
						}
						catch
						{
							dblDeliveryQuantity = 0;
						}
					}
					
					double dblOldValue ;
					if (e.OldValue.ToString().Trim() != String.Empty)
					{
						dblOldValue = double.Parse(e.OldValue.ToString());
					}
					else
					{
						dblOldValue = 0;
					}

					double dblRemainingQty = double.Parse(lblOrderQuantity.Text) + dblOldValue - double.Parse(lblTotalDelivery.Text);
					if (!(dblDeliveryQuantity >0 && dblDeliveryQuantity <=dblRemainingQty))
					{
						//MessageBox.Show("The Delivery Quantity must be higher than 0");
						PCSMessageBox.Show(ErrorCode.MESSAGE_MIN_DELIVERYQTY,MessageBoxIcon.Warning);
						e.Cancel = true;
						return;
					}
					int intDeliveryScheduleID = 0;
					try
					{
						intDeliveryScheduleID = Convert.ToInt32(dgrdData[dgrdData.Row, PO_DeliveryScheduleTable.DELIVERYSCHEDULEID_FLD]);
					}
					catch{}
					// get sum of receipt quantity of current line
					if (intDeliveryScheduleID > 0)
					{
						POPurchaseOrderReceiptsBO boPOPurchaseOrderReceipts = new POPurchaseOrderReceiptsBO();
						decimal decTotalReceiptQuantity = boPOPurchaseOrderReceipts.GetTotalReceiptQuantity(intDeliveryScheduleID);
						decimal decOrderQuantity = Convert.ToDecimal(e.Column.DataColumn.Text);
						if (decOrderQuantity < decTotalReceiptQuantity)
						{
							string[] msg = {dgrdData.Columns[PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].Caption,
											   "Receipt Quantity"};
							PCSMessageBox.Show(ErrorCode.MESSAGE_GREATER_THAN, MessageBoxIcon.Warning, msg);
							e.Cancel = true;
							return;
						}
					}
					btnSave.Enabled = true;
				}
				else
				{
					// HACK: Trada 24-11-2005
					if (e.Column.DataColumn.DataField == PO_DeliveryScheduleTable.ADJUSTMENT_FLD)
					{
						
						try
						{
							if (e.Column.DataColumn.Value.ToString() == string.Empty)
							{
								return;
							}
							decAdjustment = Decimal.Parse(e.Column.DataColumn.Text);
							if ((dgrdData[dgrdData.Row, PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].ToString() != string.Empty)&&(Decimal.Parse(dgrdData[dgrdData.Row, PO_DeliveryScheduleTable.DELIVERYQUANTITY_FLD].ToString()) + decAdjustment <= 0))
							{
								string[] strParam = new string[1];
								strParam[0] = "0";
								PCSMessageBox.Show(ErrorCode.MESSAGE_SUM_OF_DELIVERY_ADJUSTMENT_GREATER_THAN, MessageBoxIcon.Warning, strParam);
								e.Cancel = true;
							}
						}
						catch
						{
							PCSMessageBox.Show(ErrorCode.MESSAGE_INVALID_NUMERIC, MessageBoxIcon.Warning);
							e.Cancel = true;
						}
						
					} 
					// END: Trada 24-11-2005

					//Second check the Date for : Schedule, Promise, and Require Date
					//These must be higher than Order Date
					switch (e.Column.DataColumn.DataField)
					{
						case PO_DeliveryScheduleTable.SCHEDULEDATE_FLD:
							//strValue = dgrdData[dgrdData.Row,e.ColIndex].ToString().Trim();
							strValue = e.Column.DataColumn.Text;
							break;
					}
					if (strValue != String.Empty)
					{
						try 
						{
							if (DateTime.Parse(dtmDate.Value.ToString()) < objPurchaseOrderInformationVO.OrderDate)
							{
								//MessageBox.Show("The date must be higher than Order Date");
								PCSMessageBox.Show(ErrorCode.MESSAGE_CHECK_ORDERDATE,MessageBoxIcon.Warning);
								e.Cancel = true;
							}
						}
						catch
						{
							PCSMessageBox.Show(ErrorCode.MESSAGE_CHECK_DATE,MessageBoxIcon.Warning);
							e.Cancel = true;
						}
					}
					else
					{
						return;
					}
				}
				string[] strParams = new string[2];

				//check start date
				if (e.Column.DataColumn.DataField == PO_DeliveryScheduleTable.STARTDATE_FLD)
				{
					try
					{
						if (e.Column.DataColumn.Value.ToString() != string.Empty)
						{
							DateTime dtmStart = DateTime.Parse(dtmDate.Value.ToString());
							if (dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].ToString() != string.Empty)
							{
								DateTime dtmDue = DateTime.Parse(dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.SCHEDULEDATE_FLD].ToString());
								if (dtmDue < dtmStart)
								{
									strParams[0] = "Schedule Date";
									strParams[1] = "Start Date";
									PCSMessageBox.Show(ErrorCode.MESSAGE_GREATER_THAN, MessageBoxIcon.Warning, strParams);
									e.Cancel = true;
								}
							}
						}
					}
					catch
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_INVALID_DATETIME, MessageBoxIcon.Error);
						e.Cancel = true;
					}
				}

				//check due date
				if (e.Column.DataColumn.DataField == PO_DeliveryScheduleTable.SCHEDULEDATE_FLD)
				{
					try
					{
						if (e.Column.DataColumn.Value.ToString() != string.Empty)
						{
							DateTime dtmDue = DateTime.Parse(dtmDate.Value.ToString());
							if (dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.STARTDATE_FLD].ToString() != string.Empty)
							{
								DateTime dtmStart = DateTime.Parse(dgrdData[dgrdData.Row,PO_DeliveryScheduleTable.STARTDATE_FLD].ToString());
								if (dtmDue < dtmStart)
								{
									strParams[0] = "Schedule Date";
									strParams[1] = "Start Date";
									PCSMessageBox.Show(ErrorCode.MESSAGE_GREATER_THAN, MessageBoxIcon.Warning, strParams);
									e.Cancel = true;
								}
							}
						}
					}
					catch
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_INVALID_DATETIME, MessageBoxIcon.Error);
						e.Cancel = true;
					}
				}
			}			
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}

		private void dgrdData_BeforeInsert(object sender, C1.Win.C1TrueDBGrid.CancelEventArgs e)
		{
			blnAddNewByF12 = false;
			if (decimal.Parse(lblOrderQuantity.Text.Trim()) <= decimal.Parse(lblTotalDelivery.Text.Trim())) 
			{
				PCSMessageBox.Show(ErrorCode.MESSAGE_PODELIVERY_ENOUGHQTY,MessageBoxIcon.Warning);
				e.Cancel = true;
			}
		}

		private void dtmDate_Validating(object sender, CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dtmDate_Validating()";
			try
			{
				if (!dtmDate.Modified) return;
				if (dtmDate.Value != DBNull.Value)
				{
					DateTime dtinputDate = 
						DateTime.Parse(dtmDate.Value.ToString());
					DateTime dtorderDate = 
						new DateTime( objPurchaseOrderInformationVO.OrderDate.Year, objPurchaseOrderInformationVO.OrderDate.Month,objPurchaseOrderInformationVO.OrderDate.Day);
					int intCompareTwoDate = dtorderDate.CompareTo(dtinputDate);
					if ( intCompareTwoDate > 0)
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_CHECK_ORDERDATE,MessageBoxIcon.Error);
						e.Cancel = true;
					}
					else
					{
						//check the period
						if (!FormControlComponents.CheckDateInCurrentPeriod(dtinputDate))
						{
							//MessageBox.Show("Please input the Entry date");
							PCSMessageBox.Show(ErrorCode.MESSAGE_RTG_ENTRYDATE,MessageBoxIcon.Warning);
							e.Cancel = true;
						}
					}
				}
				else
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_CHECK_ORDERDATE,MessageBoxIcon.Error);
					e.Cancel = true;
				}
			}			
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		private void dtmDate_DropDownClosed(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".dtmTransDate_DropDownClosed()";
			try
			{
				if (dtmDate.Text != string.Empty)
				{
					DateTime dtmValue = new DateTime(DateTime.Parse(dtmDate.Value.ToString()).Year, DateTime.Parse(dtmDate.Value.ToString()).Month, DateTime.Parse(dtmDate.Value.ToString()).Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second);
					dtmDate.Value = dtmValue;
				}
				else
				{
					dgrdData[dgrdData.Row, dgrdData.Col] = DBNull.Value;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void dtmDate_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dtmDate_KeyDown()";
			try
			{
				if ((dtmDate.Text.Trim() == string.Empty) || (e.KeyCode == Keys.Enter
					&& DateTime.Parse(dtmDate.Value.ToString()) >= new DateTime( objPurchaseOrderInformationVO.OrderDate.Year, objPurchaseOrderInformationVO.OrderDate.Month,objPurchaseOrderInformationVO.OrderDate.Day)))
				{
					dgrdData.Col = dgrdData.Col + 1;
					dgrdData.Focus();
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void dgrdData_BeforeColEdit(object sender, BeforeColEditEventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnMasLoc_Click()";
			try
			{
				dgrdData[dgrdData.Row, PO_DeliveryScheduleTable.DELIVERYLINE_FLD] = dgrdData.Row + 1;
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void dgrdData_OnAddNew(object sender, EventArgs e)
		{
			CurrencyManager cm;

			//dgrdData.Refresh();
			dgrdData.MoveLast();
			//dgrdData.Row = dgrdData.Row + 1;

			cm = (CurrencyManager) dgrdData.BindingContext[dgrdData.DataSource];
			cm.EndCurrentEdit();
			cm.AddNew();
			AssignDefaultValue();
		}

		/// <summary>
		/// dgrdData_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, Feb 23 2006</date>
		private void dgrdData_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.Delete && dgrdData.SelectedRows.Count > 0)
				{
					if (btnSave.Enabled)
					{
						if (PCSMessageBox.Show(ErrorCode.YES_NO_MESSAGE, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
						{	
							FormControlComponents.DeleteMultiRowsOnTrueDBGrid(dgrdData);
							int intCount = 0;
							foreach (DataRow objRow in dstDeliverySchedule.Tables[0].Rows)
							{
								if(objRow.RowState != DataRowState.Deleted) 
									intCount++;
							}
							for (int i =0; i <intCount; i++)
								dgrdData[i, PO_DeliveryScheduleTable.DELIVERYLINE_FLD] = i+1;
							enumAction = EnumAction.Edit;
						}
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_FetchCellStyle
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, September 7 2006</date>
		private void dgrdData_FetchCellStyle(object sender, FetchCellStyleEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_FetchCellStyle()";
			try 
			{
//				if (dgrdData.Col == dgrdData.Columns.IndexOf(dgrdData.Columns[PO_DeliveryScheduleTable.STARTDATE_FLD]))
//				{
					if (dgrdData[dgrdData.Row, PO_DeliveryScheduleTable.STARTDATE_FLD].ToString() != string.Empty)
					{
						if ((DateTime)dgrdData[dgrdData.Row, PO_DeliveryScheduleTable.STARTDATE_FLD] < dtmServerDate)
						{
							e.CellStyle.ForeColor = Color.Red;
						}
					}
				//}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		
		}
	}
	[Serializable]
	public class PurchaseOrderInformationVO
	{
		public PurchaseOrderInformationVO()
		{
			//
			// TODO: Add constructor logic here
			//
		}
		private int mPurchaseOrderMasterID;
		private int mPurchaseOrderDetailID;
		private string mPurchaseOrderNo;
		private int mPurchaseOrderLine;
		private int mProductID;
		private string mProductCode;
		private string mProductRevision;
		private string mProductDescription;
		private string mUnitCode;
		private string mCCNCode;
		private decimal mOrderQuantity;
		private DateTime mOrderDate;
		private bool mApprovalStatus;
		private string mCategory;

		public string Category
		{
			get { return mCategory; }
			set { mCategory = value; }
		}

		public int PurchaseOrderMasterID
		{
			get
			{
				return mPurchaseOrderMasterID;
			}
			set 
			{
				mPurchaseOrderMasterID = value;
			}
		}
		public int PurchaseOrderDetailID
		{
			get
			{
				return mPurchaseOrderDetailID;
			}
			set 
			{
				mPurchaseOrderDetailID = value;
			}
		}
		public string PurchaseOrderNo
		{
			get
			{
				return mPurchaseOrderNo;
			}
			set 
			{
				mPurchaseOrderNo = value;
			}
		}
		public int PurchaseOrderLine
		{
			get
			{
				return mPurchaseOrderLine;
			}
			set 
			{
				mPurchaseOrderLine = value;
			}
		}
		public int ProductID
		{
			get
			{
				return mProductID;
			}
			set 
			{
				mProductID = value;
			}
		}
		public string ProductCode
		{
			get
			{
				return mProductCode;
			}
			set 
			{
				mProductCode = value;
			}
		}
		public string ProductRevision
		{
			get
			{
				return mProductRevision;
			}
			set 
			{
				mProductRevision = value;
			}
		}
		public string ProductDescription
		{
			get
			{
				return mProductDescription;
			}
			set 
			{
				mProductDescription = value;
			}
		}
		public string UnitCode
		{
			get
			{
				return mUnitCode;
			}
			set 
			{
				mUnitCode = value;
			}
		}
		public string CCNCode
		{
			get
			{
				return mCCNCode;
			}
			set 
			{
				mCCNCode = value;
			}
		}
		public decimal OrderQuantity
		{
			get
			{
				return mOrderQuantity;
			}
			set 
			{
				mOrderQuantity = value;
			}
		}

		public DateTime OrderDate
		{
			get
			{
				return mOrderDate;
			}
			set 
			{
				mOrderDate = value;
			}
		}
		public bool ApprovalStatus
		{
			get
			{
				return mApprovalStatus;
			}
			set 
			{
				mApprovalStatus = value;
			}
		}
		
	}
}
